Browse Source

Latest message text: Show "GIF" for GIFs (#649)

Danilo Bargen 6 years ago
parent
commit
a03e637d6a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/directives/message_text.ts

+ 2 - 0
src/directives/message_text.ts

@@ -31,6 +31,8 @@ function getText(message: threema.Message): string {
             // Prefer caption for file messages, if available
             if (message.caption && message.caption.length > 0) {
                 return message.caption;
+            } else if (message.file.type === 'image/gif') {
+                return 'GIF';
             }
             return message.file.name;
     }