Browse Source

avoid imbalance between setting and revoking editing state in ChatListController

cyberta 3 năm trước cách đây
mục cha
commit
0e50b10b40
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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 {