浏览代码

fix: Fixes authentication and renamed method.

Fixes jitsi/jitsi-meet#13455.
release-8443
damencho 2 年前
父节点
当前提交
df190e4a8f
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1
    3
      authenticateAndUpgradeRole.js
  2. 1
    1
      types/hand-crafted/modules/xmpp/moderator.d.ts

+ 1
- 3
authenticateAndUpgradeRole.js 查看文件

109
 
109
 
110
                         // At this point we should have the new session ID
110
                         // At this point we should have the new session ID
111
                         // stored in the settings. Send a new conference IQ.
111
                         // stored in the settings. Send a new conference IQ.
112
-                        this.room.moderator.allocateConferenceFocus();
113
-
114
-                        resolve();
112
+                        this.room.moderator.sendConferenceRequest().finally(resolve);
115
                     })
113
                     })
116
                     .catch(({ error, message }) => {
114
                     .catch(({ error, message }) => {
117
                         xmpp.disconnect();
115
                         xmpp.disconnect();

+ 1
- 1
types/hand-crafted/modules/xmpp/moderator.d.ts 查看文件

11
   createConferenceIq: () => Strophe.Builder; // TODO:
11
   createConferenceIq: () => Strophe.Builder; // TODO:
12
   parseSessionId: ( resultIq: unknown ) => void; // TODO:
12
   parseSessionId: ( resultIq: unknown ) => void; // TODO:
13
   parseConfigOptions: ( resultIq: unknown ) => void; // TODO:
13
   parseConfigOptions: ( resultIq: unknown ) => void; // TODO:
14
-  allocateConferenceFocus: () => Promise<unknown>; // TODO: jsdoc suggests an argument
14
+  sendConferenceRequest: () => Promise<unknown>;
15
   authenticate: () => Promise<unknown>; // TODO:
15
   authenticate: () => Promise<unknown>; // TODO:
16
   getLoginUrl: () => unknown; // TODO:
16
   getLoginUrl: () => unknown; // TODO:
17
   getPopupLoginUrl: ( urlCallback: unknown, failureCallback: ( params: unknown ) => unknown ) => unknown; // TODO:
17
   getPopupLoginUrl: ( urlCallback: unknown, failureCallback: ( params: unknown ) => unknown ) => unknown; // TODO:

正在加载...
取消
保存