소스 검색

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