Show audio file performer-title in dialogs list.

This commit is contained in:
John Preston 2018-03-15 02:38:39 +03:00
parent 87ab4d9dd1
commit 31b82a5d92

View file

@ -482,8 +482,9 @@ QString MediaFile::chatsListText() const {
return lang(lng_in_dlg_video);
} else if (_document->isVoiceMessage()) {
return lang(lng_in_dlg_audio);
} else if (!_document->filename().isEmpty()) {
return _document->filename();
} else if (const auto name = _document->composeNameString();
!name.isEmpty()) {
return name;
} else if (_document->isAudioFile()) {
return lang(lng_in_dlg_audio_file);
}