mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +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)) {
|
||||
// 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user