2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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 "window/window_peer_menu.h"
#include "api/api_chat_participants.h"
#include "lang/lang_keys.h"
#include "ui/boxes/confirm_box.h"
#include "boxes/delete_messages_box.h"
@@ -1090,9 +1091,9 @@ void PeerMenuAddChannelMembers(
return;
}
const auto api = &channel->session().api();
api->requestChannelMembersForAdd(channel, crl::guard(navigation, [=](
api->chatParticipants().requestForAdd(channel, crl::guard(navigation, [=](
const MTPchannels_ChannelParticipants &result) {
api->parseChannelParticipants(channel, result, [&](
api->chatParticipants().parse(channel, result, [&](
int availableCount,
const QVector<MTPChannelParticipant> &list) {
auto already = (