mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
some fixes for the 0.9.11.dev version
This commit is contained in:
@@ -651,7 +651,8 @@ bool ApiWrap::gotSelfParticipantFail(ChannelData *channel, const RPCError &error
|
||||
|
||||
void ApiWrap::kickParticipant(PeerData *peer, UserData *user) {
|
||||
KickRequest req(peer, user);
|
||||
if (_kickRequests.contains(req));
|
||||
if (_kickRequests.contains(req)) return;
|
||||
|
||||
if (peer->isChannel()) {
|
||||
_kickRequests.insert(req, MTP::send(MTPchannels_KickFromChannel(peer->asChannel()->inputChannel, user->inputUser, MTP_bool(true)), rpcDone(&ApiWrap::kickParticipantDone, req), rpcFail(&ApiWrap::kickParticipantFail, req)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user