Added initial implementation of right button for bots in dialogs list.

This commit is contained in:
23rd
2024-11-24 16:53:28 +03:00
parent 14cc7789d9
commit 8a3aa660cb
9 changed files with 259 additions and 39 deletions
@@ -478,6 +478,12 @@ Widget::Widget(
) | rpl::start_with_next([=](const ChosenRow &row) {
chosenRow(row);
}, lifetime());
_inner->openBotMainAppRequests(
) | rpl::start_with_next([=](UserId userId) {
if (const auto user = session().data().user(userId)) {
openBotMainApp(user);
}
}, lifetime());
_scroll->geometryChanged(
) | rpl::start_with_next(crl::guard(_inner, [=] {