Explorar o código

iOS 11+12: don't allow context menu if editing mode is enabled

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

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -1142,7 +1142,7 @@ class ChatViewController: UITableViewController {
     }
 
     override func tableView(_ tableView: UITableView, canPerformAction action: Selector, forRowAt indexPath: IndexPath, withSender sender: Any?) -> Bool {
-        return contextMenu.canPerformAction(action: action)
+        return !tableView.isEditing && contextMenu.canPerformAction(action: action)
     }
 
     override func tableView(_ tableView: UITableView, performAction action: Selector, forRowAt indexPath: IndexPath, withSender sender: Any?) {