Эх сурвалжийг харах

avoid imbalance between setting and revoking editing state in ChatListController

cyberta 3 жил өмнө
parent
commit
0e50b10b40

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

@@ -472,8 +472,7 @@ class ChatListController: UITableViewController {
     }
 
     func setLongTapEditing(_ editing: Bool, initialIndexPath: [IndexPath]? = nil) {
-        tableView.setEditing(editing, animated: true)
-        viewModel?.setEditing(editing)
+        setEditing(editing, animated: true)
         if editing {
             addEditingView()
             if let viewModel = viewModel {