소스 검색

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() {