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

Moved code for api participants to separated file.

This commit is contained in:
23rd
2021-11-24 07:25:05 +03:00
committed by John Preston
parent 3271cdf251
commit b9c64499bd
24 changed files with 840 additions and 730 deletions

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "api/api_editing.h"
#include "api/api_bot.h"
#include "api/api_chat_participants.h"
#include "api/api_sending.h"
#include "api/api_text_entities.h"
#include "api/api_send_progress.h"
@@ -5675,7 +5676,8 @@ void HistoryWidget::handlePeerMigration() {
showHistory(
channel->id,
(_showAtMsgId > 0) ? (-_showAtMsgId) : _showAtMsgId);
channel->session().api().requestParticipantsCountDelayed(channel);
channel->session().api().chatParticipants().requestCountDelayed(
channel);
} else {
_migrated = _history->migrateFrom();
_list->notifyMigrateUpdated();
@@ -6737,10 +6739,10 @@ void HistoryWidget::handlePeerUpdate() {
session().api().requestFullPeer(_peer);
} else if (auto channel = _peer->asMegagroup()) {
if (!channel->mgInfo->botStatus) {
session().api().requestBots(channel);
session().api().chatParticipants().requestBots(channel);
}
if (channel->mgInfo->admins.empty()) {
session().api().requestAdmins(channel);
session().api().chatParticipants().requestAdmins(channel);
}
}
if (!_a_show.animating()) {