mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fixes #1247 - Pasting from Notes into EX tries to upload an RTF attachment
This commit is contained in:
committed by
Stefan Ceriu
parent
d0965c7f88
commit
9e95130331
@@ -39,6 +39,11 @@ extension NSItemProvider {
|
||||
return false
|
||||
}
|
||||
|
||||
// Prevents media upload triggering for text copied from Notes.app #1247
|
||||
if mimeType == "application/x-webarchive" {
|
||||
return false
|
||||
}
|
||||
|
||||
return mimeType.hasPrefix("image/") || mimeType.hasPrefix("video/") || mimeType.hasPrefix("application/")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user