From 31b82a5d92849b31c9988b11c8ab5b14ff1719b5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 15 Mar 2018 02:38:39 +0300 Subject: [PATCH] Show audio file performer-title in dialogs list. --- Telegram/SourceFiles/data/data_media_types.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/data/data_media_types.cpp b/Telegram/SourceFiles/data/data_media_types.cpp index c96f960fab..bbec856d5d 100644 --- a/Telegram/SourceFiles/data/data_media_types.cpp +++ b/Telegram/SourceFiles/data/data_media_types.cpp @@ -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); }