1
0
mirror of https://github.com/vector-im/hydrogen-web.git synced 2025-01-11 20:47:18 +01:00

session will always be true here, we want to check sessionEntry

This commit is contained in:
Bruno Windels 2020-09-04 12:05:58 +02:00
parent 74a86c8377
commit 80ede4f411

@ -42,7 +42,7 @@ export class Encryption {
} }
if (!sessionEntry || this._needsToRotate(session, sessionEntry.createdAt, encryptionParams)) { if (!sessionEntry || this._needsToRotate(session, sessionEntry.createdAt, encryptionParams)) {
// in the case of rotating, recreate a session as we already unpickled into it // in the case of rotating, recreate a session as we already unpickled into it
if (session) { if (sessionEntry) {
session.free(); session.free();
session = new this._olm.OutboundGroupSession(); session = new this._olm.OutboundGroupSession();
} }