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

Added sending action when choosing sticker.

This commit is contained in:
23rd
2021-08-30 18:05:07 +03:00
parent 0852dbc40f
commit 8c17e3e578
9 changed files with 60 additions and 5 deletions

View File

@@ -479,6 +479,13 @@ auto TabbedSelector::inlineResultChosen() const
return hasGifsTab() ? gifs()->inlineResultChosen() : nullptr;
}
auto TabbedSelector::choosingStickerUpdated() const
-> rpl::producer<TabbedSelector::Action>{
return hasStickersTab()
? stickers()->choosingUpdated()
: rpl::never<Action>();
}
rpl::producer<> TabbedSelector::cancelled() const {
return hasGifsTab() ? gifs()->cancelRequests() : nullptr;
}