mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve phrases for removed users.
This commit is contained in:
@@ -1759,11 +1759,15 @@ void ApiWrap::saveDefaultRestrictions(
|
||||
if (error.type() == qstr("CHAT_NOT_MODIFIED")) {
|
||||
if (const auto chat = peer->asChat()) {
|
||||
chat->setDefaultRestrictions(rights);
|
||||
if (callback) {
|
||||
callback(true);
|
||||
}
|
||||
return;
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
channel->setDefaultRestrictions(rights);
|
||||
} else {
|
||||
Unexpected("Peer in ApiWrap::saveDefaultRestrictions.");
|
||||
}
|
||||
if (callback) {
|
||||
callback(true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (callback) {
|
||||
callback(false);
|
||||
|
Reference in New Issue
Block a user