2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update kicked count in Channel Info box.

This commit is contained in:
John Preston
2017-12-26 19:12:10 +03:00
parent 69d9072ff0
commit 21f4bbbe7b
10 changed files with 106 additions and 73 deletions

View File

@@ -1268,21 +1268,6 @@ bool MainWidget::addParticipantsFail(
return false;
}
void MainWidget::kickParticipant(ChatData *chat, UserData *user) {
MTP::send(
MTPmessages_DeleteChatUser(chat->inputChat, user->inputUser),
rpcDone(&MainWidget::sentUpdatesReceived),
rpcFail(&MainWidget::kickParticipantFail, chat));
Ui::showPeerHistory(chat->id, ShowAtTheEndMsgId);
}
bool MainWidget::kickParticipantFail(ChatData *chat, const RPCError &error) {
if (MTP::isDefaultHandledError(error)) return false;
error.type();
return false;
}
void MainWidget::checkPeerHistory(PeerData *peer) {
auto offsetId = 0;
auto offsetDate = 0;