2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-01 11:22:00 +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

@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "api/api_invite_links.h"
#include "api/api_chat_participants.h"
#include "data/data_peer.h"
#include "data/data_user.h"
#include "data/data_chat.h"
@@ -478,7 +479,7 @@ void InviteLinks::processRequest(
++chat->count;
}
} else if (const auto channel = peer->asChannel()) {
_api->requestParticipantsCountDelayed(channel);
_api->chatParticipants().requestCountDelayed(channel);
}
_api->applyUpdates(result);
if (link.isEmpty() && approved) {