Explorar o código

hide keyboard if user tapped on a chat item, adapt to DC Android

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
01ce1cc350
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      deltachat-ios/Controller/ChatListController.swift

+ 3 - 1
deltachat-ios/Controller/ChatListController.swift

@@ -473,7 +473,9 @@ class ChatListController: UITableViewController {
     }
 
     func showChat(chatId: Int, highlightedMsg: Int? = nil, animated: Bool = true) {
-        //let chatVC = ChatViewController(dcContext: dcContext, chatId: chatId)
+        if searchController.isActive {
+            searchController.searchBar.resignFirstResponder()
+        }
         let chatVC = ChatViewController(dcContext: dcContext, chatId: chatId, highlightedMsg: highlightedMsg)
         navigationController?.pushViewController(chatVC, animated: animated)
     }