Explorar o código

hide context menu if user scrolls in chat list or taps on a cell

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
f7d4ce5938
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      deltachat-ios/Chat/ChatViewControllerNew.swift

+ 2 - 0
deltachat-ios/Chat/ChatViewControllerNew.swift

@@ -319,6 +319,7 @@ class ChatViewControllerNew: UITableViewController {
     }
 
     override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
+        UIMenuController.shared.setMenuVisible(false, animated: true)
 
         let id = messageIds[indexPath.row]
         let message = DcMsg(id: id)
@@ -362,6 +363,7 @@ class ChatViewControllerNew: UITableViewController {
             let mediaUrls: [URL] = previousUrls + [url] + nextUrls
             showMediaGallery(currentIndex: previousUrls.count, mediaUrls: mediaUrls)
         }
+        UIMenuController.shared.setMenuVisible(false, animated: true)
     }
 
     func configureAvatarVisibility(for message: DcMsg, at indexPath: IndexPath) -> Bool {