mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +00:00
Fixed song covers for voice chat records.
This commit is contained in:
parent
61741b53c3
commit
07c65dfd74
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user