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'); }