Don't crash on topic icon reset.

This commit is contained in:
John Preston 2022-10-04 21:03:55 +04:00
parent 2781fe2c34
commit 57b752c232

View file

@ -333,7 +333,7 @@ void EmojiStatusPanel::startAnimation(
not_null<Ui::RpWidget*> body,
DocumentId statusId,
Ui::MessageSendingAnimationFrom from) {
if (!_panelButton) {
if (!_panelButton || !statusId) {
return;
}
auto args = HistoryView::Reactions::AnimationArgs{