diff --git a/src/matrix/e2ee/megolm/Decryption.js b/src/matrix/e2ee/megolm/Decryption.js index 395b03a0..79a58ffa 100644 --- a/src/matrix/e2ee/megolm/Decryption.js +++ b/src/matrix/e2ee/megolm/Decryption.js @@ -111,6 +111,7 @@ export class Decryption { return; } + // TODO: compare first_known_index to see which session to keep const hasSession = await txn.inboundGroupSessions.has(roomId, senderKey, sessionId); if (!hasSession) { const session = new this._olm.InboundGroupSession();