This commit is contained in:
Bruno Windels 2020-09-04 16:46:13 +02:00
parent a817a9aaf9
commit fbb534fa16

View File

@ -111,6 +111,7 @@ export class Decryption {
return; return;
} }
// TODO: compare first_known_index to see which session to keep
const hasSession = await txn.inboundGroupSessions.has(roomId, senderKey, sessionId); const hasSession = await txn.inboundGroupSessions.has(roomId, senderKey, sessionId);
if (!hasSession) { if (!hasSession) {
const session = new this._olm.InboundGroupSession(); const session = new this._olm.InboundGroupSession();