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

View file

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