Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
6a07467f74
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  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