浏览代码

Merge pull request #594 from deltachat/contact-search-updates

scroll to top if filtering of contact list changed
nayooti 5 年之前
父节点
当前提交
67dcfa8885

+ 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()
     }
 }