瀏覽代碼

remove superfluous check after accepting a chat

cyberta 4 年之前
父節點
當前提交
5023643b89
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1683,10 +1683,7 @@ extension ChatViewController: ChatEditingDelegate {
 extension ChatViewController: ChatContactRequestDelegate {
     func onAcceptPressed() {
         dcContext.acceptChat(chatId: chatId)
-        disableWriting = !dcContext.getChat(chatId: chatId).canSend
-        if !disableWriting {
-            configureUIForWriting()
-        }
+        configureUIForWriting()
     }
 
     func onBlockPressed() {