mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix requesting bots list in megagroup.
This commit is contained in:
parent
0f443da758
commit
07ba84c857
1 changed files with 2 additions and 1 deletions
|
@ -411,7 +411,7 @@ void ChatParticipants::requestBots(not_null<ChannelData*> channel) {
|
|||
_botsRequests.remove(channel);
|
||||
result.match([&](const MTPDchannels_channelParticipants &data) {
|
||||
const auto &[availableCount, list] = Parse(channel, data);
|
||||
ApplyLastList(channel, availableCount, list);
|
||||
ApplyBotsList(channel, availableCount, list);
|
||||
}, [](const MTPDchannels_channelParticipantsNotModified &) {
|
||||
LOG(("API Error: "
|
||||
"channels.channelParticipantsNotModified received!"));
|
||||
|
@ -518,6 +518,7 @@ ChatParticipants::Parsed ChatParticipants::Parse(
|
|||
not_null<ChannelData*> channel,
|
||||
const TLMembers &data) {
|
||||
channel->owner().processUsers(data.vusers());
|
||||
channel->owner().processChats(data.vchats());
|
||||
auto list = ParseList(data, channel);
|
||||
if (channel->mgInfo) {
|
||||
RefreshChannelAdmins(channel, list);
|
||||
|
|
Loading…
Add table
Reference in a new issue