Fixed song covers for voice chat records.

This commit is contained in:
23rd 2021-04-03 17:52:45 +03:00 committed by John Preston
parent 61741b53c3
commit 07c65dfd74

View File

@ -111,7 +111,9 @@ void LoadThumbnailFromExternal(not_null<DocumentData*> document) {
const auto songData = document->song(); const auto songData = document->song();
if (!songData if (!songData
|| songData->performer.isEmpty() || songData->performer.isEmpty()
|| songData->title.isEmpty()) { || songData->title.isEmpty()
// Ignore cover for voice chat records.
|| document->hasMimeType(qstr("audio/ogg"))) {
return; return;
} }