|
@@ -6,7 +6,7 @@ import { getFirstLoadableAvatarUrl, getParticipantDisplayName } from '../base/pa
|
6
|
6
|
import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux';
|
7
|
7
|
import { isTestModeEnabled } from '../base/testing';
|
8
|
8
|
import { NOTIFICATION_TYPE, showNotification } from '../notifications';
|
9
|
|
-import { isPrejoinPageEnabled } from '../prejoin/functions';
|
|
9
|
+import { shouldAutoKnock } from '../prejoin/functions';
|
10
|
10
|
|
11
|
11
|
import { KNOCKING_PARTICIPANT_ARRIVED_OR_UPDATED } from './actionTypes';
|
12
|
12
|
import {
|
|
@@ -100,8 +100,7 @@ function _conferenceFailed({ dispatch, getState }, next, action) {
|
100
|
100
|
|
101
|
101
|
dispatch(openLobbyScreen());
|
102
|
102
|
|
103
|
|
- if (isPrejoinPageEnabled(state) && !state['features/lobby'].knocking) {
|
104
|
|
- // prejoin is enabled, so we knock automatically
|
|
103
|
+ if (shouldAutoKnock(state)) {
|
105
|
104
|
dispatch(startKnocking());
|
106
|
105
|
}
|
107
|
106
|
|