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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user