Bläddra i källkod

Passes confID when initializing JitsiConference.

The confID is domain.com/RoomName or domain.com/tenant/RoomName, adds the tenant if any and also keeps the room name case.
master
damencho 6 år sedan
förälder
incheckning
0e9e695251
2 ändrade filer med 4 tillägg och 1 borttagningar
  1. 2
    0
      conference.js
  2. 2
    1
      react/features/base/conference/actions.js

+ 2
- 0
conference.js Visa fil

@@ -1241,6 +1241,7 @@ export default {
1241 1241
         const options = config;
1242 1242
 
1243 1243
         const nick = APP.store.getState()['features/base/settings'].displayName;
1244
+        const { locationURL } = APP.store.getState()['features/base/connection'];
1244 1245
 
1245 1246
         if (nick) {
1246 1247
             options.displayName = nick;
@@ -1248,6 +1249,7 @@ export default {
1248 1249
 
1249 1250
         options.applicationName = interfaceConfig.APP_NAME;
1250 1251
         options.getWiFiStatsMethod = this._getWiFiStatsMethod;
1252
+        options.confID = `${locationURL.host}${locationURL.pathname}`;
1251 1253
 
1252 1254
         return options;
1253 1255
     },

+ 2
- 1
react/features/base/conference/actions.js Visa fil

@@ -393,7 +393,8 @@ export function createConference() {
393 393
                 room.toLowerCase(), {
394 394
                     ...state['features/base/config'],
395 395
                     applicationName: getName(),
396
-                    getWiFiStatsMethod: getJitsiMeetGlobalNS().getWiFiStats
396
+                    getWiFiStatsMethod: getJitsiMeetGlobalNS().getWiFiStats,
397
+                    confID: `${locationURL.host}${locationURL.pathname}`
397 398
                 });
398 399
 
399 400
         connection[JITSI_CONNECTION_CONFERENCE_KEY] = conference;

Laddar…
Avbryt
Spara