|
@@ -1,6 +1,8 @@
|
1
|
1
|
// @flow
|
2
|
2
|
|
3
|
3
|
import { reloadNow } from '../../app';
|
|
4
|
+import { openDisplayNamePrompt } from '../../display-name';
|
|
5
|
+
|
4
|
6
|
import {
|
5
|
7
|
ACTION_PINNED,
|
6
|
8
|
ACTION_UNPINNED,
|
|
@@ -12,6 +14,7 @@ import {
|
12
|
14
|
import { CONNECTION_ESTABLISHED, CONNECTION_FAILED } from '../connection';
|
13
|
15
|
import { JitsiConferenceErrors } from '../lib-jitsi-meet';
|
14
|
16
|
import {
|
|
17
|
+ getLocalParticipant,
|
15
|
18
|
getParticipantById,
|
16
|
19
|
getPinnedParticipant,
|
17
|
20
|
PARTICIPANT_UPDATED,
|
|
@@ -186,6 +189,7 @@ function _conferenceJoined({ dispatch, getState }, next, action) {
|
186
|
189
|
const result = next(action);
|
187
|
190
|
const { conference } = action;
|
188
|
191
|
const { pendingSubjectChange } = getState()['features/base/conference'];
|
|
192
|
+ const { requireDisplayName } = getState()['features/base/config'];
|
189
|
193
|
|
190
|
194
|
pendingSubjectChange && dispatch(setSubject(pendingSubjectChange));
|
191
|
195
|
|
|
@@ -199,6 +203,12 @@ function _conferenceJoined({ dispatch, getState }, next, action) {
|
199
|
203
|
};
|
200
|
204
|
window.addEventListener('beforeunload', beforeUnloadHandler);
|
201
|
205
|
|
|
206
|
+ if (requireDisplayName
|
|
207
|
+ && !getLocalParticipant(getState)?.name
|
|
208
|
+ && !conference.isHidden()) {
|
|
209
|
+ dispatch(openDisplayNamePrompt(undefined));
|
|
210
|
+ }
|
|
211
|
+
|
202
|
212
|
return result;
|
203
|
213
|
}
|
204
|
214
|
|