mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix assertion violation in non-history song player.
This commit is contained in:
@@ -234,7 +234,9 @@ void Panel::refreshList() {
|
|||||||
: nullptr;
|
: nullptr;
|
||||||
const auto media = item ? item->media() : nullptr;
|
const auto media = item ? item->media() : nullptr;
|
||||||
const auto document = media ? media->document() : nullptr;
|
const auto document = media ? media->document() : nullptr;
|
||||||
if (!document || !document->isSharedMediaMusic()) {
|
if (!document
|
||||||
|
|| !document->isSharedMediaMusic()
|
||||||
|
|| !IsServerMsgId(item->id)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
const auto result = item->history()->peer;
|
const auto result = item->history()->peer;
|
||||||
|
Reference in New Issue
Block a user