Explorar el Código

hide input-bar on accepting mailing lists (mailing lists are still read-only)

B. Petersen hace 3 años
padre
commit
5ffbfed8f5
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1714,7 +1714,12 @@ extension ChatViewController: ChatEditingDelegate {
 extension ChatViewController: ChatContactRequestDelegate {
     func onAcceptRequest() {
         dcContext.acceptChat(chatId: chatId)
-        configureUIForWriting()
+        let chat = dcContext.getChat(chatId: chatId)
+        if chat.isMailinglist {
+            messageInputBar.isHidden = true
+        } else {
+            configureUIForWriting()
+        }
     }
 
     func onBlockRequest() {