2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added simple animation of stickers sending from autocomplete field.

This commit is contained in:
23rd
2022-02-11 08:24:54 +03:00
committed by John Preston
parent 0a2fbb0d70
commit a0a857a6db
4 changed files with 48 additions and 9 deletions

View File

@@ -401,7 +401,10 @@ HistoryWidget::HistoryWidget(
_fieldAutocomplete->stickerChosen(
) | rpl::start_with_next([=](FieldAutocomplete::StickerChosen data) {
sendExistingDocument(data.sticker, data.options);
controller->sendingAnimation().appendSending(
data.messageSendingFrom);
const auto localId = data.messageSendingFrom.localId;
sendExistingDocument(data.sticker, data.options, localId);
}, lifetime());
_fieldAutocomplete->setModerateKeyActivateCallback([=](int key) {