Handle com.compuserve.gif type with dataForPasteboardType (#3857)

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
This commit is contained in:
Mattermost Build 2020-01-24 18:45:29 +01:00 committed by Miguel Alatzar
parent 44c3910ce6
commit 96e017e9eb

View file

@ -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];