Skip to content

Commit 5107e0a

Browse files
committed
fix ratchet event participant id
1 parent 30d59f5 commit 5107e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/e2ee/matrixKeyProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class MatrixKeyProvider extends BaseKeyProvider {
2626
super({ ratchetWindowSize: 10, keyringSize: 10 });
2727

2828
this.onKeyRatchetComplete = (ratchetResult: RatchetResult, participantIdentity?: string, keyIndex?: number): void => {
29-
logger.debug(`key ratcheted event received for ${participantId} at index ${keyIndex}`);
30-
this.rtcSession?.onKeyRatcheted(ratchetResult.chainKey, keyIndex);
29+
logger.debug(`key ratcheted event received for ${participantIdentity} at index ${keyIndex}`);
30+
this.rtcSession?.onKeyRatcheted(ratchetResult.chainKey,participantIdentity, keyIndex);
3131
};
3232

3333
this.on(KeyProviderEvent.KeyRatcheted, this.onKeyRatchetComplete);

0 commit comments

Comments
 (0)