Fix possible crash in sticker click.

This commit is contained in:
John Preston 2025-01-06 21:34:58 +04:00
parent 343560225c
commit c062ba3426

View file

@ -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;