Quellcode durchsuchen

avoid imbalance between setting and revoking editing state in ChatListController

cyberta vor 3 Jahren
Ursprung
Commit
0e50b10b40
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      deltachat-ios/Controller/ChatListController.swift

+ 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 {