浏览代码

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