mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Show error-by-privacy in adding user as admin.
This commit is contained in:
@@ -141,6 +141,11 @@ void ShowAddParticipantsError(
|
||||
return PeerFloodErrorText(isGroup
|
||||
? PeerFloodType::InviteGroup
|
||||
: PeerFloodType::InviteChannel);
|
||||
} else if (error == qstr("ADMINS_TOO_MUCH")) {
|
||||
const auto isGroup = (chat->isChat() || chat->isMegagroup());
|
||||
return lang(isGroup
|
||||
? lng_error_admin_limit
|
||||
: lng_error_admin_limit_channel);
|
||||
}
|
||||
return lang(lng_failed_add_participant);
|
||||
}();
|
||||
|
Reference in New Issue
Block a user