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

added ADMINS_TOO_MUCH error handle (when adding too much admins to a channel)

This commit is contained in:
John Preston
2015-10-29 12:02:13 -04:00
parent 59abcc2986
commit 087e2970cd
2 changed files with 4 additions and 1 deletions

View File

@@ -199,7 +199,9 @@ bool ContactsInner::addAdminFail(const RPCError &error, mtpRequestId req) {
_addAdminRequestId = 0;
if (error.type() == "USERS_TOO_MUCH") {
App::wnd()->replaceLayer(new MaxInviteBox(_channel->invitationUrl));
} else {
} else if (error.type() == "ADMINS_TOO_MUCH") {
App::wnd()->replaceLayer(new InformBox(lang(lng_channel_admins_too_much)));
} else {
if (_addAdminBox) _addAdminBox->onClose();
emit adminAdded();
}