diff --git a/Signal/src/ViewControllers/SignalAttachment.swift b/Signal/src/ViewControllers/SignalAttachment.swift index 787b04944..d56593292 100644 --- a/Signal/src/ViewControllers/SignalAttachment.swift +++ b/Signal/src/ViewControllers/SignalAttachment.swift @@ -314,10 +314,6 @@ class SignalAttachment: NSObject { } let pasteboardUTISet = Set(pasteboardUTITypes[0]) - if pasteboardUTISet.contains(kUTTypeURL as String) { - return true - } - // The pasteboard can be populated with multiple UTI types // with different payloads. iMessage for example will copy // an animated GIF to the pasteboard with the following UTI @@ -341,6 +337,10 @@ class SignalAttachment: NSObject { hasNonTextUTIType = true } } + if pasteboardUTISet.contains(kUTTypeURL as String) { + // Treat URL as a textual UTI type. + hasTextUTIType = true + } if hasNonTextUTIType { return false }