Implements dialog for max users error

This commit is contained in:
hristoterezov 2016-03-15 14:08:01 -05:00
parent 95f36cfd9a
commit 02ff54b659
3 changed files with 21 additions and 0 deletions

View File

@ -258,6 +258,10 @@ class ConferenceConnector {
APP.UI.notifyFocusLeft();
break;
case ConferenceErrors.CONFERENCE_MAX_USERS:
connection.disconnect();
APP.UI.notifyMaxUsersLimitReached();
break;
default:
this._handleConferenceFailed(err, ...params);
}

View File

@ -146,6 +146,7 @@
"failedpermissions": "Failed to obtain permissions to use the local microphone and/or camera.",
"bridgeUnavailable": "Jitsi Videobridge is currently unavailable. Please try again later!",
"jicofoUnavailable": "Jicofo is currently unavailable. Please try again later!",
"maxUsersLimitReached": "The limit for maximum number of participants in the conference is already reached. The conference is full. Please try again later!",
"lockTitle": "Lock failed",
"lockMessage": "Failed to lock the conference.",
"warning": "Warning",

View File

@ -732,6 +732,22 @@ UI.notifyConnectionFailed = function (stropheErrorMsg) {
);
};
/**
* Notify user that max users limit is already reached.
*/
UI.notifyMaxUsersLimitReached = function () {
var title = APP.translation.generateTranslationHTML(
"dialog.error");
var message = APP.translation.generateTranslationHTML(
"dialog.maxUsersLimitReached");
messageHandler.openDialog(
title, message, true, {}, function (e, v, m, f) { return false; }
);
};
/**
* Notify user that he was automatically muted when joned the conference.
*/