Explorar el Código

remove superfluous check after accepting a chat

cyberta hace 4 años
padre
commit
5023643b89
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  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 {
 extension ChatViewController: ChatContactRequestDelegate {
     func onAcceptPressed() {
     func onAcceptPressed() {
         dcContext.acceptChat(chatId: chatId)
         dcContext.acceptChat(chatId: chatId)
-        disableWriting = !dcContext.getChat(chatId: chatId).canSend
-        if !disableWriting {
-            configureUIForWriting()
-        }
+        configureUIForWriting()
     }
     }
 
 
     func onBlockPressed() {
     func onBlockPressed() {