From 3f1d8ee2b8c67549f98ee5b64ed5f8898769a391 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 19 May 2017 10:25:30 -0700 Subject: [PATCH] Fix display name for ios voice messages iOS populates a filename for voice messages which was overruling our check for the voice message flag when choosing the display name. // FREEBIE --- js/views/attachment_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 913c634e94..5d020100ea 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -127,12 +127,12 @@ } }, displayName: function() { - if (this.model.fileName) { - return this.model.fileName; - } if (this.isVoiceMessage()) { return i18n('voiceMessage'); } + if (this.model.fileName) { + return this.model.fileName; + } if (this.isAudio() || this.isVideo()) { return i18n('mediaMssage'); }