Browse Source

scroll to top if filtering of contact list changed

cyberta 5 years ago
parent
commit
7d66d0c7e5

+ 1 - 0
deltachat-ios/Controller/GroupMembersViewController.swift

@@ -414,6 +414,7 @@ class GroupMembersViewController: UITableViewController, UISearchResultsUpdating
 
         filteredContacts = contactsWithHighlights.filter { !$0.indexesToHighlight.isEmpty }
         tableView.reloadData()
+        tableView.scrollToTop()
     }
 
     private func updateContactCell(cell: ContactCell, contactWithHighlight: ContactWithSearchResults) {

+ 1 - 0
deltachat-ios/Controller/NewChatViewController.swift

@@ -371,6 +371,7 @@ class NewChatViewController: UITableViewController {
 
         filteredContacts = contactsWithHighlights.filter { !$0.indexesToHighlight.isEmpty }
         tableView.reloadData()
+        tableView.scrollToTop()
     }
 }