소스 검색

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

scroll to top if filtering of contact list changed
nayooti 5 년 전
부모
커밋
67dcfa8885
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()
     }
 }