소스 검색

disable 'select more' if the chat cannot sent

this is a quick fix and affects the device chat and contact requests only,
reason is that 'select more' needs the messageInputBar to work,
and the messageInputBar is not available if one cannot send in the chat.

we might think that over when we have more chats that cannot send
(upcoming mailing lists maybe).
B. Petersen 4 년 전
부모
커밋
6a07467f74
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -188,8 +188,10 @@ class ChatViewController: UITableViewController {
         if #available(iOS 13.0, *), !disableWriting {
             let mainContextMenu = ContextMenuProvider.ContextMenuItem(submenuitems: [replyItem, forwardItem, infoItem, copyItem, deleteItem])
             config.setMenu([mainContextMenu, selectMoreItem])
-        } else {
+        } else if !disableWriting {
             config.setMenu([forwardItem, infoItem, copyItem, deleteItem, selectMoreItem])
+        } else {
+            config.setMenu([forwardItem, infoItem, copyItem, deleteItem])
         }
 
         return config