Pārlūkot izejas kodu

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

B. Petersen 3 gadi atpakaļ
vecāks
revīzija
5ffbfed8f5
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  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() {