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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user