瀏覽代碼

tests: Do not close lobby notifications when testing.

master
damencho 4 年之前
父節點
當前提交
f6d375f565
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      react/features/lobby/middleware.js

+ 2
- 1
react/features/lobby/middleware.js 查看文件

@@ -4,6 +4,7 @@ import { CONFERENCE_FAILED, CONFERENCE_JOINED } from '../base/conference';
4 4
 import { JitsiConferenceErrors, JitsiConferenceEvents } from '../base/lib-jitsi-meet';
5 5
 import { getFirstLoadableAvatarUrl, getParticipantDisplayName } from '../base/participants';
6 6
 import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
7
+import { isTestModeEnabled } from '../base/testing';
7 8
 import { NOTIFICATION_TYPE, showNotification } from '../notifications';
8 9
 import { isPrejoinPageEnabled } from '../prejoin/functions';
9 10
 
@@ -193,5 +194,5 @@ function _maybeSendLobbyNotification(origin, message, { dispatch, getState }) {
193 194
         break;
194 195
     }
195 196
 
196
-    dispatch(showNotification(notificationProps, 5000));
197
+    dispatch(showNotification(notificationProps, isTestModeEnabled(getState()) ? undefined : 5000));
197 198
 }

Loading…
取消
儲存