瀏覽代碼

fix(e2ee) call correct function to update key

s/updateCurrentKey/updateCurrentMediaKey/g
master
Jorge Oliveira 2 年之前
父節點
當前提交
1714bf079c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      modules/e2ee/ManagedKeyHandler.js
  2. 1
    1
      types/hand-crafted/modules/e2ee/OlmAdapter.d.ts

+ 1
- 1
modules/e2ee/ManagedKeyHandler.js 查看文件

@@ -169,7 +169,7 @@ export class ManagedKeyHandler extends KeyHandler {
169 169
 
170 170
         this._key = new Uint8Array(newKey);
171 171
 
172
-        const index = this._olmAdapter.updateCurrentKey(this._key);
172
+        const index = this._olmAdapter.updateCurrentMediaKey(this._key);
173 173
 
174 174
         this.e2eeCtx.setKey(this.conference.myUserId(), this._key, index);
175 175
     }

+ 1
- 1
types/hand-crafted/modules/e2ee/OlmAdapter.d.ts 查看文件

@@ -5,7 +5,7 @@ export class OlmAdapter extends Listenable {
5 5
   constructor( conference: JitsiConference );
6 6
   initSessions: () => Promise<unknown>; // TODO:
7 7
   static isSupported: () => boolean;
8
-  updateCurrentKey: ( key: Uint8Array | boolean ) => number;
8
+  updateCurrentMediaKey: ( key: Uint8Array | boolean ) => number;
9 9
   clearParticipantSession: ( participant: unknown ) => void; // TODO:
10 10
   clearAllParticipantsSessions: () => void;
11 11
   updateKey: ( key: Uint8Array | boolean ) => Promise<number>;

Loading…
取消
儲存