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

Provided session controller to AddBotToGroupBoxController.

This commit is contained in:
23rd
2022-06-09 08:19:11 +03:00
parent d034410a3f
commit bfe873e91c
6 changed files with 36 additions and 14 deletions

View File

@@ -684,9 +684,10 @@ void Filler::addBotToGroup() {
user
) | rpl::take(1) | rpl::start_with_next([=](QString label) {
if (!label.isEmpty()) {
const auto controller = _controller;
_addAction(
label,
[=] { AddBotToGroupBoxController::Start(user); },
[=] { AddBotToGroupBoxController::Start(controller, user); },
&st::menuIconInvite);
}
});