Fixes #1247 - Pasting from Notes into EX tries to upload an RTF attachment
This commit is contained in:
committed by
Stefan Ceriu
parent
a46ebfe7fe
commit
daa2bc771d
@@ -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