From 57b752c232dae7374eaad3fb8a3410cce91cc8a2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 Oct 2022 21:03:55 +0400 Subject: [PATCH] Don't crash on topic icon reset. --- .../info/profile/info_profile_emoji_status_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_emoji_status_panel.cpp b/Telegram/SourceFiles/info/profile/info_profile_emoji_status_panel.cpp index d1e2d94b4..56fb000f1 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_emoji_status_panel.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_emoji_status_panel.cpp @@ -333,7 +333,7 @@ void EmojiStatusPanel::startAnimation( not_null body, DocumentId statusId, Ui::MessageSendingAnimationFrom from) { - if (!_panelButton) { + if (!_panelButton || !statusId) { return; } auto args = HistoryView::Reactions::AnimationArgs{