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