Added right button for bots in list from recent dialogs.

This commit is contained in:
23rd
2024-11-25 12:25:36 +03:00
parent 6c62bbe6fb
commit a9824fde91
5 changed files with 114 additions and 14 deletions
@@ -1443,7 +1443,9 @@ void Widget::updateSuggestions(anim::type animated) {
}
}, _suggestions->lifetime());
_suggestions->recentAppChosen(
rpl::merge(
_suggestions->openBotMainAppRequests(),
_suggestions->recentAppChosen()
) | rpl::start_with_next([=](not_null<PeerData*> peer) {
if (const auto user = peer->asUser()) {
if (const auto info = user->botInfo.get()) {