Browse Source

Merge pull request #537 from jitsi/max_users_error

Implements dialog for max users error
j8
Paweł Domas 9 years ago
parent
commit
7b55d8b526
3 changed files with 21 additions and 0 deletions
  1. 4
    0
      conference.js
  2. 1
    0
      lang/main.json
  3. 16
    0
      modules/UI/UI.js

+ 4
- 0
conference.js View File

256
             APP.UI.notifyFocusLeft();
256
             APP.UI.notifyFocusLeft();
257
             break;
257
             break;
258
 
258
 
259
+        case ConferenceErrors.CONFERENCE_MAX_USERS:
260
+            connection.disconnect();
261
+            APP.UI.notifyMaxUsersLimitReached();
262
+            break;
259
         default:
263
         default:
260
             this._handleConferenceFailed(err, ...params);
264
             this._handleConferenceFailed(err, ...params);
261
         }
265
         }

+ 1
- 0
lang/main.json View File

144
         "failedpermissions": "Failed to obtain permissions to use the local microphone and/or camera.",
144
         "failedpermissions": "Failed to obtain permissions to use the local microphone and/or camera.",
145
         "bridgeUnavailable": "Jitsi Videobridge is currently unavailable. Please try again later!",
145
         "bridgeUnavailable": "Jitsi Videobridge is currently unavailable. Please try again later!",
146
         "jicofoUnavailable": "Jicofo is currently unavailable. Please try again later!",
146
         "jicofoUnavailable": "Jicofo is currently unavailable. Please try again later!",
147
+        "maxUsersLimitReached": "The limit for maximum number of participants in the conference has been reached. The conference is full. Please try again later!",
147
         "lockTitle": "Lock failed",
148
         "lockTitle": "Lock failed",
148
         "lockMessage": "Failed to lock the conference.",
149
         "lockMessage": "Failed to lock the conference.",
149
         "warning": "Warning",
150
         "warning": "Warning",

+ 16
- 0
modules/UI/UI.js View File

728
     );
728
     );
729
 };
729
 };
730
 
730
 
731
+
732
+/**
733
+ * Notify user that maximum users limit has been reached.
734
+ */
735
+UI.notifyMaxUsersLimitReached = function () {
736
+    var title = APP.translation.generateTranslationHTML(
737
+        "dialog.error");
738
+
739
+    var message = APP.translation.generateTranslationHTML(
740
+            "dialog.maxUsersLimitReached");
741
+
742
+    messageHandler.openDialog(
743
+        title, message, true, {}, function (e, v, m, f) { return false; }
744
+    );
745
+};
746
+
731
 /**
747
 /**
732
  * Notify user that he was automatically muted when joned the conference.
748
  * Notify user that he was automatically muted when joned the conference.
733
  */
749
  */

Loading…
Cancel
Save