Explorar o código

fix warning: Conditional cast from 'ChatInputTextView' to 'ChatInputTextView' always succeeds

B. Petersen %!s(int64=3) %!d(string=hai) anos
pai
achega
2397000b2f
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1128,9 +1128,7 @@ class ChatViewController: UITableViewController {
         messageInputBar.inputTextView.scrollIndicatorInsets = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)
         messageInputBar.inputTextView.scrollIndicatorInsets = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)
         configureInputBarItems()
         configureInputBarItems()
         messageInputBar.inputTextView.delegate = self
         messageInputBar.inputTextView.delegate = self
-        if let inputTextView = messageInputBar.inputTextView as? ChatInputTextView {
-            inputTextView.imagePasteDelegate = self
-        }
+        messageInputBar.inputTextView.imagePasteDelegate = self
         messageInputBar.onScrollDownButtonPressed = scrollToBottom
         messageInputBar.onScrollDownButtonPressed = scrollToBottom
     }
     }