Browse Source

Fix recording for public access (#9584)

master
robertpin 3 years ago
parent
commit
c657f360e1
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      connection.js

+ 2
- 1
connection.js View File

@@ -88,8 +88,9 @@ export async function connect(id, password, roomName) {
88 88
     const connectionConfig = Object.assign({}, config);
89 89
     const state = APP.store.getState();
90 90
     let { jwt } = state['features/base/jwt'];
91
+    const { iAmRecorder, iAmSipGateway } = state['features/base/config'];
91 92
 
92
-    if (!jwt && isVpaasMeeting(state)) {
93
+    if (!iAmRecorder && !iAmSipGateway && !jwt && isVpaasMeeting(state)) {
93 94
         jwt = await getJaasJWT(state);
94 95
         APP.store.dispatch(setJWT(jwt));
95 96
     }

Loading…
Cancel
Save