Browse Source

fix: Lobby display name set when preJoin is disabled. Fixes #8415.

master
damencho 4 years ago
parent
commit
f1e06bff7b
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      react/features/lobby/actions.web.js

+ 11
- 1
react/features/lobby/actions.web.js View File

3
 import { type Dispatch } from 'redux';
3
 import { type Dispatch } from 'redux';
4
 
4
 
5
 import { appNavigate, maybeRedirectToWelcomePage } from '../app/actions';
5
 import { appNavigate, maybeRedirectToWelcomePage } from '../app/actions';
6
-import { conferenceWillJoin, getCurrentConference, setPassword } from '../base/conference';
6
+import {
7
+    conferenceWillJoin,
8
+    getCurrentConference,
9
+    sendLocalParticipant,
10
+    setPassword
11
+} from '../base/conference';
7
 import { hideDialog, openDialog } from '../base/dialog';
12
 import { hideDialog, openDialog } from '../base/dialog';
8
 import { getLocalParticipant } from '../base/participants';
13
 import { getLocalParticipant } from '../base/participants';
9
 
14
 
183
         const localParticipant = getLocalParticipant(state);
188
         const localParticipant = getLocalParticipant(state);
184
 
189
 
185
         dispatch(conferenceWillJoin(membersOnly));
190
         dispatch(conferenceWillJoin(membersOnly));
191
+
192
+        // We need to update the conference object with the current display name, if approved
193
+        // we want to send that display name, it was not updated in case when pre-join is disabled
194
+        sendLocalParticipant(state, membersOnly);
195
+
186
         membersOnly.joinLobby(localParticipant.name, localParticipant.email);
196
         membersOnly.joinLobby(localParticipant.name, localParticipant.email);
187
         dispatch(setKnockingState(true));
197
         dispatch(setKnockingState(true));
188
     };
198
     };

Loading…
Cancel
Save