소스 검색

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 {
     func onAcceptRequest() {
         dcContext.acceptChat(chatId: chatId)
-        configureUIForWriting()
+        let chat = dcContext.getChat(chatId: chatId)
+        if chat.isMailinglist {
+            messageInputBar.isHidden = true
+        } else {
+            configureUIForWriting()
+        }
     }
 
     func onBlockRequest() {