From 01ab8d132d4b0ea1f36a9b760505361c386eef8a Mon Sep 17 00:00:00 2001 From: ArkadiuszBanas Date: Tue, 2 Aug 2016 19:50:59 +0200 Subject: [PATCH] Handle animated content type in TSAttachment:description: (#19) Displaying icons for gifs was missing in messages list cells (https://github.com/WhisperSystems/Signal-iOS/issues/1271). //FREEBE --- src/Messages/Attachments/TSAttachment.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Messages/Attachments/TSAttachment.m b/src/Messages/Attachments/TSAttachment.m index 117e4f739..643cd629b 100644 --- a/src/Messages/Attachments/TSAttachment.m +++ b/src/Messages/Attachments/TSAttachment.m @@ -38,6 +38,8 @@ return [NSString stringWithFormat:@"📽 %@", attachmentString]; } else if ([MIMETypeUtil isAudio:self.contentType]) { return [NSString stringWithFormat:@"📻 %@", attachmentString]; + } else if ([MIMETypeUtil isAnimated:self.contentType]) { + return [NSString stringWithFormat:@"🎡 %@", attachmentString]; } return attachmentString;