Преглед на файлове

scroll to top if filtering of contact list changed

cyberta преди 5 години
родител
ревизия
7d66d0c7e5
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      deltachat-ios/Controller/GroupMembersViewController.swift
  2. 1 0
      deltachat-ios/Controller/NewChatViewController.swift

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