瀏覽代碼

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

B. Petersen 3 年之前
父節點
當前提交
5ffbfed8f5
共有 1 個文件被更改,包括 6 次插入1 次删除
  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 {
 extension ChatViewController: ChatContactRequestDelegate {
     func onAcceptRequest() {
     func onAcceptRequest() {
         dcContext.acceptChat(chatId: chatId)
         dcContext.acceptChat(chatId: chatId)
-        configureUIForWriting()
+        let chat = dcContext.getChat(chatId: chatId)
+        if chat.isMailinglist {
+            messageInputBar.isHidden = true
+        } else {
+            configureUIForWriting()
+        }
     }
     }
 
 
     func onBlockRequest() {
     func onBlockRequest() {