浏览代码

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

master
damencho 4 年前
父节点
当前提交
f1e06bff7b
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11
    1
      react/features/lobby/actions.web.js

+ 11
- 1
react/features/lobby/actions.web.js 查看文件

@@ -3,7 +3,12 @@
3 3
 import { type Dispatch } from 'redux';
4 4
 
5 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 12
 import { hideDialog, openDialog } from '../base/dialog';
8 13
 import { getLocalParticipant } from '../base/participants';
9 14
 
@@ -183,6 +188,11 @@ export function startKnocking() {
183 188
         const localParticipant = getLocalParticipant(state);
184 189
 
185 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 196
         membersOnly.joinLobby(localParticipant.name, localParticipant.email);
187 197
         dispatch(setKnockingState(true));
188 198
     };

正在加载...
取消
保存