mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fixes #1332 - Pasting an image from MobileSafari gives both url and file upload
This commit is contained in:
parent
3a538c6e29
commit
d0965c7f88
@ -233,10 +233,11 @@ private class ElementTextView: UITextView {
|
||||
}
|
||||
|
||||
override func paste(_ sender: Any?) {
|
||||
super.paste(sender)
|
||||
|
||||
guard let provider = UIPasteboard.general.itemProviders.first,
|
||||
provider.isSupportedForPasteOrDrop else {
|
||||
// If the item is not supported for media upload then
|
||||
// just try pasting its contents into the textfield
|
||||
super.paste(sender)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user