From f68e40f7d85441bbdffd82ca639c9d9602a2ef30 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 23 Mar 2017 16:08:57 -0400 Subject: [PATCH] Add animated gif UTI types to attachment. // FREEBIE --- Signal/src/view controllers/SignalAttachment.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/view controllers/SignalAttachment.swift b/Signal/src/view controllers/SignalAttachment.swift index 897bebb9c..d240d1aa4 100644 --- a/Signal/src/view controllers/SignalAttachment.swift +++ b/Signal/src/view controllers/SignalAttachment.swift @@ -128,14 +128,14 @@ class SignalAttachment: NSObject { // Image attachments may be converted to another image format before // being uploaded. private class var inputImageUTISet: Set { - return MIMETypeUtil.supportedImageUTITypes() + return MIMETypeUtil.supportedImageUTITypes().union(animatedImageUTISet) } // Returns the set of UTIs that correspond to valid _output_ image formats // for Signal attachments. private class var outputImageUTISet: Set { if allowArbitraryAttachments { - return MIMETypeUtil.supportedImageUTITypes() + return MIMETypeUtil.supportedImageUTITypes().union(animatedImageUTISet) } else { // Until Android client can handle arbitrary attachments, // restrict output.