2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Version 2.7.1: Fix channels ban in admin log.

This commit is contained in:
John Preston
2021-03-20 18:19:31 +04:00
parent 26d97a3636
commit a82d1e863e
7 changed files with 49 additions and 24 deletions

View File

@@ -1526,6 +1526,8 @@ void ApiWrap::applyLastParticipantsList(
const auto participantId = p.match([](
const MTPDchannelParticipantBanned &data) {
return peerFromMTP(data.vpeer());
}, [](const MTPDchannelParticipantLeft &data) {
return peerFromMTP(data.vpeer());
}, [](const auto &data) {
return peerFromUser(data.vuser_id());
});
@@ -1614,6 +1616,8 @@ void ApiWrap::applyBotsList(
const auto participantId = p.match([](
const MTPDchannelParticipantBanned &data) {
return peerFromMTP(data.vpeer());
}, [](const MTPDchannelParticipantLeft &data) {
return peerFromMTP(data.vpeer());
}, [](const auto &data) {
return peerFromUser(data.vuser_id());
});
@@ -3197,6 +3201,8 @@ void ApiWrap::refreshChannelAdmins(
const auto participantId = p.match([](
const MTPDchannelParticipantBanned &data) {
return peerFromMTP(data.vpeer());
}, [](const MTPDchannelParticipantLeft &data) {
return peerFromMTP(data.vpeer());
}, [](const auto &data) {
return peerFromUser(data.vuser_id());
});