From 96e017e9eb89802ea437aa831ee2859daae82176 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 24 Jan 2020 18:45:29 +0100 Subject: [PATCH] Handle com.compuserve.gif type with dataForPasteboardType (#3857) Co-authored-by: Miguel Alatzar --- ios/Mattermost/UIPasteboard+GetImageInfo.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/Mattermost/UIPasteboard+GetImageInfo.m b/ios/Mattermost/UIPasteboard+GetImageInfo.m index 7c84f1eef..2074a05c3 100644 --- a/ios/Mattermost/UIPasteboard+GetImageInfo.m +++ b/ios/Mattermost/UIPasteboard+GetImageInfo.m @@ -25,6 +25,7 @@ } NSString *type = item.allKeys[j]; + @try { NSString *uri = self.string; @@ -32,6 +33,8 @@ if ([type isEqual:@"public.jpeg"] || [type isEqual:@"public.heic"] || [type isEqual:@"public.png"]) { fileData = [self getDataForImageItem:item[type] type:type]; + } else if ([type isEqual:@"com.compuserve.gif"]) { + fileData = [self dataForPasteboardType:type]; } SwimeProxy *swimeProxy = [SwimeProxy shared];