Skip to content

Commit

Permalink
Fix possible crash in sticker click.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 6, 2025
1 parent 3435602 commit c062ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/history/history_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c062ba3

Please sign in to comment.