소스 검색

Implements dialog for max users error

j8
hristoterezov 9 년 전
부모
커밋
02ff54b659
3개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      conference.js
  2. 1
    0
      lang/main.json
  3. 16
    0
      modules/UI/UI.js

+ 4
- 0
conference.js 파일 보기

@@ -258,6 +258,10 @@ class ConferenceConnector {
258 258
             APP.UI.notifyFocusLeft();
259 259
             break;
260 260
 
261
+        case ConferenceErrors.CONFERENCE_MAX_USERS:
262
+            connection.disconnect();
263
+            APP.UI.notifyMaxUsersLimitReached();
264
+            break;
261 265
         default:
262 266
             this._handleConferenceFailed(err, ...params);
263 267
         }

+ 1
- 0
lang/main.json 파일 보기

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

+ 16
- 0
modules/UI/UI.js 파일 보기

@@ -732,6 +732,22 @@ UI.notifyConnectionFailed = function (stropheErrorMsg) {
732 732
     );
733 733
 };
734 734
 
735
+
736
+/**
737
+ * Notify user that max users limit is already reached.
738
+ */
739
+UI.notifyMaxUsersLimitReached = function () {
740
+    var title = APP.translation.generateTranslationHTML(
741
+        "dialog.error");
742
+
743
+    var message = APP.translation.generateTranslationHTML(
744
+            "dialog.maxUsersLimitReached");
745
+
746
+    messageHandler.openDialog(
747
+        title, message, true, {}, function (e, v, m, f) { return false; }
748
+    );
749
+};
750
+
735 751
 /**
736 752
  * Notify user that he was automatically muted when joned the conference.
737 753
  */

Loading…
취소
저장