session will always be true here, we want to check sessionEntry
This commit is contained in:
parent
74a86c8377
commit
80ede4f411
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Reference in a new issue