2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Fix crashes in MainWidget and ApiWrap.

This commit is contained in:
John Preston
2020-06-30 18:26:44 +04:00
parent 09aff23ac9
commit c15019dee6
7 changed files with 16 additions and 18 deletions

View File

@@ -1023,7 +1023,7 @@ void PeerMenuAddChannelMembers(
return;
}
const auto api = &channel->session().api();
api->requestChannelMembersForAdd(channel, [=](
api->requestChannelMembersForAdd(channel, crl::guard(navigation, [=](
const MTPchannels_ChannelParticipants &result) {
api->parseChannelParticipants(channel, result, [&](
int availableCount,
@@ -1045,7 +1045,7 @@ void PeerMenuAddChannelMembers(
channel,
{ already.begin(), already.end() });
});
});
}));
}
void PeerMenuAddMuteAction(