mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
session will always be true here, we want to check sessionEntry
This commit is contained in:
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user