瀏覽代碼

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

B. Petersen 3 年之前
父節點
當前提交
2397000b2f
共有 1 個文件被更改,包括 1 次插入3 次删除
  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)
         configureInputBarItems()
         messageInputBar.inputTextView.delegate = self
-        if let inputTextView = messageInputBar.inputTextView as? ChatInputTextView {
-            inputTextView.imagePasteDelegate = self
-        }
+        messageInputBar.inputTextView.imagePasteDelegate = self
         messageInputBar.onScrollDownButtonPressed = scrollToBottom
     }