浏览代码

ref(LargeVideoManager): simplify

Simplify 'updateParticipantConnStatusIndication' by getting rid of
'showMessage' argument.
master
paweldomas 8 年前
父节点
当前提交
a3ba28f507
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5
    6
      modules/UI/videolayout/LargeVideoManager.js

+ 5
- 6
modules/UI/videolayout/LargeVideoManager.js 查看文件

241
             this.updateParticipantConnStatusIndication(
241
             this.updateParticipantConnStatusIndication(
242
                     id,
242
                     id,
243
                     !overrideAndHide && isConnectionInterrupted,
243
                     !overrideAndHide && isConnectionInterrupted,
244
-                    !overrideAndHide && messageKey !== null,
245
-                    messageKey);
244
+                    !overrideAndHide && messageKey);
246
 
245
 
247
             // resolve updateLargeVideo promise after everything is done
246
             // resolve updateLargeVideo promise after everything is done
248
             promise.then(resolve);
247
             promise.then(resolve);
279
      *
278
      *
280
      * @param {string} id the id of remote participant(MUC nickname)
279
      * @param {string} id the id of remote participant(MUC nickname)
281
      * @param {boolean} showProblemsIndication
280
      * @param {boolean} showProblemsIndication
282
-     * @param {boolean} showMessage
283
-     * @param {string} messageKey the i18n key of the message
281
+     * @param {string|null} messageKey the i18n key of the message which will be
282
+     * displayed on the large video or <tt>null</tt> to hide it.
284
      *
283
      *
285
      * @private
284
      * @private
286
      */
285
      */
287
     updateParticipantConnStatusIndication (
286
     updateParticipantConnStatusIndication (
288
-        id, showProblemsIndication, showMessage, messageKey) {
287
+        id, showProblemsIndication, messageKey) {
289
 
288
 
290
         // Apply grey filter on the large video
289
         // Apply grey filter on the large video
291
         this.videoContainer.showRemoteConnectionProblemIndicator(
290
         this.videoContainer.showRemoteConnectionProblemIndicator(
292
             showProblemsIndication);
291
             showProblemsIndication);
293
 
292
 
294
-        if (!showMessage) {
293
+        if (!messageKey) {
295
             // Hide the message
294
             // Hide the message
296
             this.showRemoteConnectionMessage(false);
295
             this.showRemoteConnectionMessage(false);
297
         } else {
296
         } else {

正在加载...
取消
保存