2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

fixed delete chat where you are not participant / deactivated chat, scheme updated

This commit is contained in:
John Preston
2015-11-19 14:28:17 +03:00
parent 1fa4fd269e
commit 583c0e5904
10 changed files with 45 additions and 35 deletions

View File

@@ -249,7 +249,8 @@ void ContactsInner::onAllAdminsChanged() {
update();
}
void ContactsInner::addAdminDone(const MTPBool &result, mtpRequestId req) {
void ContactsInner::addAdminDone(const MTPUpdates &result, mtpRequestId req) {
if (App::main()) App::main()->sentUpdatesReceived(result);
if (req != _addAdminRequestId) return;
_addAdminRequestId = 0;
@@ -2191,8 +2192,9 @@ void MembersInner::kickDone(const MTPUpdates &result, mtpRequestId req) {
if (_kickBox) _kickBox->onClose();
}
void MembersInner::kickAdminDone(const MTPBool &result, mtpRequestId req) {
void MembersInner::kickAdminDone(const MTPUpdates &result, mtpRequestId req) {
if (_kickRequestId != req) return;
if (App::main()) App::main()->sentUpdatesReceived(result);
removeKicked();
if (_kickBox) _kickBox->onClose();
}