瀏覽代碼

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 年之前
父節點
當前提交
0e9e695251
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. 2
    0
      conference.js
  2. 2
    1
      react/features/base/conference/actions.js

+ 2
- 0
conference.js 查看文件

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

+ 2
- 1
react/features/base/conference/actions.js 查看文件

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

Loading…
取消
儲存