From ae04cfc53edb2c09fdac7930f8e1dd3de5cc8d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 4 Sep 2023 16:04:49 +0200 Subject: [PATCH] Add a comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/e2ee/matrixKeyProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/e2ee/matrixKeyProvider.ts b/src/e2ee/matrixKeyProvider.ts index 31dfeb33..afba326a 100644 --- a/src/e2ee/matrixKeyProvider.ts +++ b/src/e2ee/matrixKeyProvider.ts @@ -42,6 +42,8 @@ export class MatrixKeyProvider extends BaseKeyProvider { participant, encryptionKey, ] of this.rtcSession.encryptionKeys.entries()) { + // The new session could be aware of keys of which the old session wasn't, + // so emit a key changed event. this.onEncryptionKeyChanged( encryptionKey, participant.userId,