diff --git a/Telegram/SourceFiles/boxes/peer_list_controllers.cpp b/Telegram/SourceFiles/boxes/peer_list_controllers.cpp index a51b185c1..54285869d 100644 --- a/Telegram/SourceFiles/boxes/peer_list_controllers.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_controllers.cpp @@ -563,7 +563,7 @@ void AddParticipantsBoxController::Start( bool justCreated) { auto initBox = [channel, justCreated](not_null box) { auto subscription = std::make_shared(); - box->addButton(langFactory(lng_participant_invite), [=, subscription] { + box->addButton(langFactory(lng_participant_invite), [=, copy = subscription] { if (InviteSelectedUsers(box, channel)) { if (channel->isMegagroup()) { Ui::showPeerHistory(channel, ShowAtTheEndMsgId);