From c062ba34269a51963fedf8c15891ec01346c955c Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 6 Jan 2025 21:34:58 +0400 Subject: [PATCH] Fix possible crash in sticker click. --- Telegram/SourceFiles/history/history_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index c574420eb..2b890fd26 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1858,7 +1858,7 @@ void HistoryWidget::fileChosen(ChatHelpers::FileChosen &&data) { } else if (!_field->isHidden()) { Data::InsertCustomEmoji(_field.data(), data.document); } - } else { + } else if (_history) { controller()->sendingAnimation().appendSending( data.messageSendingFrom); const auto localId = data.messageSendingFrom.localId;