From 8306e58b75d718c20183c9c305503358dc613ca3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 28 Dec 2018 19:40:02 +0400 Subject: [PATCH] Fix build in Xcode / GCC. --- Telegram/SourceFiles/boxes/peer_list_controllers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);