Browse Source

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 năm trước cách đây
mục cha
commit
6a07467f74

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

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