ソースを参照

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
     }