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
This commit is contained in:
parent
3c73f390eb
commit
3f1d8ee2b8
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue