Skip to content

Commit

Permalink
tests: Do not close lobby notifications when testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Oct 1, 2020
1 parent c54fed7 commit f6d375f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/features/lobby/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { CONFERENCE_FAILED, CONFERENCE_JOINED } from '../base/conference';
import { JitsiConferenceErrors, JitsiConferenceEvents } from '../base/lib-jitsi-meet';
import { getFirstLoadableAvatarUrl, getParticipantDisplayName } from '../base/participants';
import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
import { isTestModeEnabled } from '../base/testing';
import { NOTIFICATION_TYPE, showNotification } from '../notifications';
import { isPrejoinPageEnabled } from '../prejoin/functions';

Expand Down Expand Up @@ -193,5 +194,5 @@ function _maybeSendLobbyNotification(origin, message, { dispatch, getState }) {
break;
}

dispatch(showNotification(notificationProps, 5000));
dispatch(showNotification(notificationProps, isTestModeEnabled(getState()) ? undefined : 5000));
}

0 comments on commit f6d375f

Please sign in to comment.