Browse Source

Remove redundant print statements

feature/add-notifications
Tovi Jaeschke-Rogers 2 years ago
parent
commit
6ff7b7d67f
4 changed files with 25 additions and 13 deletions
  1. +1
    -2
      README.md
  2. +0
    -1
      mobile/lib/views/authentication/login.dart
  3. +0
    -2
      mobile/lib/views/main/conversation/detail.dart
  4. +24
    -8
      mobile/lib/views/main/friend/list.dart

+ 1
- 2
README.md View File

@ -10,8 +10,7 @@ Encrypted messaging app
- Add message pagination
- Finish off conversation settings page
- Finish message expiry
- Add back button to QR scanner
- Add more padding at message send text box
- Fix error when creating existing conversation between friends
- Sort conversation based on latest message
- Fix admin bool on conversation object frontend
- Fix image picker being patchy on iOS

+ 0
- 1
mobile/lib/views/authentication/login.dart View File

@ -175,7 +175,6 @@ class _LoginWidgetState extends State<LoginWidget> {
ModalRoute.withName('/home'),
);
}).catchError((error) {
print(error);
showMessage(
'Could not login to Envelope, please try again later.',
context,


+ 0
- 2
mobile/lib/views/main/conversation/detail.dart View File

@ -84,8 +84,6 @@ class _ConversationDetailState extends State<ConversationDetail> {
@override
void initState() {
print(widget.conversation.admin);
print(widget.conversation.adminSendMessages);
sendDisabled = widget.conversation.adminSendMessages && !widget.conversation.admin;
super.initState();
fetchMessages();


+ 24
- 8
mobile/lib/views/main/friend/list.dart View File

@ -97,26 +97,42 @@ class _FriendListState extends State<FriendList> {
}
void filterSearchResults(String query) {
List<Friend> dummySearchList = [];
dummySearchList.addAll(friends);
List<Friend> dummyFriendsList = [];
List<Friend> dummyFriendRequestsList = [];
dummyFriendsList.addAll(friends);
dummyFriendRequestsList.addAll(friendRequests);
if(query.isNotEmpty) {
List<Friend> dummyListData = [];
for (Friend item in dummySearchList) {
if (query.isNotEmpty) {
List<Friend> dummyFriendData = [];
List<Friend> dummyFriendRequestData = [];
for (Friend item in dummyFriendsList) {
if(item.username.toLowerCase().contains(query)) {
dummyListData.add(item);
dummyFriendData.add(item);
}
}
for (Friend item in dummyFriendRequestsList) {
if(item.username.toLowerCase().contains(query)) {
dummyFriendRequestData.add(item);
}
}
setState(() {
friends.clear();
friends.addAll(dummyListData);
friends.addAll(dummyFriendData);
friendRequests.clear();
friendRequests.addAll(dummyFriendRequestData);
});
return;
}
setState(() {
friends.clear();
friends.addAll(friends);
friends.addAll(widget.friends);
friendRequests.clear();
friendRequests.addAll(widget.friendRequests);
});
}


Loading…
Cancel
Save