From f5eac5d0ad0f1821f1b7e99f00660d712509e382 Mon Sep 17 00:00:00 2001 From: Arnaud Ringenbach Date: Fri, 4 Feb 2022 16:31:58 +0100 Subject: [PATCH] Handle jpeg and png UTType properly Signed-off-by: Arnaud Ringenbach --- .../Sources/ShareExtensionShareItemProvider.swift | 4 +++- changelog.d/3636.bugfix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3636.bugfix diff --git a/RiotShareExtension/Sources/ShareExtensionShareItemProvider.swift b/RiotShareExtension/Sources/ShareExtensionShareItemProvider.swift index 1ef2f4bbf7..72de8b8e37 100644 --- a/RiotShareExtension/Sources/ShareExtensionShareItemProvider.swift +++ b/RiotShareExtension/Sources/ShareExtensionShareItemProvider.swift @@ -27,7 +27,9 @@ private class ShareExtensionItem: ShareItemProtocol { } var type: ShareItemType { - if itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.image.rawValue) { + if itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.image.rawValue) + || itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.jpeg.rawValue) + || itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.png.rawValue) { return .image } else if itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.video.rawValue) { return .video diff --git a/changelog.d/3636.bugfix b/changelog.d/3636.bugfix new file mode 100644 index 0000000000..9d8bcf7775 --- /dev/null +++ b/changelog.d/3636.bugfix @@ -0,0 +1 @@ +Share: Handle jpeg and png UTType properly