Explorar o código

revert renaming imagePasteDelegate in ChatInputTextView

cyberta %!s(int64=2) %!d(string=hai) anos
pai
achega
142b3c2357

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

@@ -1271,7 +1271,7 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
         messageInputBar.inputTextView.scrollIndicatorInsets = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)
         configureInputBarItems()
         messageInputBar.inputTextView.delegate = self
-        messageInputBar.inputTextView.textViewPasteDelegate = self
+        messageInputBar.inputTextView.imagePasteDelegate = self
         messageInputBar.onScrollDownButtonPressed = scrollToBottom
         messageInputBar.inputTextView.setDropInteractionDelegate(delegate: self)
     }

+ 2 - 2
deltachat-ios/Chat/Views/ChatInputTextView.swift

@@ -5,7 +5,7 @@ import UniformTypeIdentifiers
 
 public class ChatInputTextView: InputTextView {
 
-    public weak var textViewPasteDelegate: ChatInputTextViewPasteDelegate?
+    public weak var imagePasteDelegate: ChatInputTextViewPasteDelegate?
     private lazy var dropInteraction: ChatDropInteraction = {
         return ChatDropInteraction()
     }()
@@ -26,7 +26,7 @@ public class ChatInputTextView: InputTextView {
         guard let image = UIPasteboard.general.image else {
             return super.paste(sender)
         }
-        textViewPasteDelegate?.onImagePasted(image: image)
+        imagePasteDelegate?.onImagePasted(image: image)
     }
 }