Fixes #1247 - Pasting from Notes into EX tries to upload an RTF attachment

This commit is contained in:
Stefan Ceriu
2023-07-18 13:41:40 +03:00
committed by Stefan Ceriu
parent a46ebfe7fe
commit daa2bc771d

View File

@@ -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/")
}
}