2
0
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:
John Preston
2019-06-05 19:47:08 +03:00
parent 6f4e31c9c3
commit c2b2236e64
2 changed files with 6 additions and 18 deletions

View File

@@ -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);
}();