浏览代码

allow multi selection only if editing is allowed

cyberta 4 年之前
父节点
当前提交
d6ffaf6579
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -246,7 +246,7 @@ class ChatViewController: UITableViewController {
         tableView.rowHeight = UITableView.automaticDimension
         tableView.separatorStyle = .none
         tableView.keyboardDismissMode = .interactive
-        tableView.allowsMultipleSelectionDuringEditing = true
+
         if !dcContext.isConfigured() {
             // TODO: display message about nothing being configured
             return
@@ -259,6 +259,7 @@ class ChatViewController: UITableViewController {
             messageInputBar.inputTextView.text = draft.text
             configureDraftArea(draft: draft)
             editingBar.delegate = self
+            tableView.allowsMultipleSelectionDuringEditing = true
         }
 
         let notificationCenter = NotificationCenter.default