2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +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

@@ -554,11 +554,12 @@ void ActionsFiller::addInviteToGroupAction(
const auto notEmpty = [](const QString &value) {
return !value.isEmpty();
};
const auto controller = _controller->parentController();
AddActionButton(
_wrap,
InviteToChatButton(user) | rpl::filter(notEmpty),
InviteToChatButton(user) | rpl::map(notEmpty),
[=] { AddBotToGroupBoxController::Start(user); },
[=] { AddBotToGroupBoxController::Start(controller, user); },
&st::infoIconAddMember);
const auto about = _wrap->add(
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(