From 620409b3f0bace8694ebd3698cf3dd9d4dfc351e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 18 Feb 2022 17:10:26 +0100 Subject: [PATCH] fixup: ctor argument order as it was an object before, order didn't matter --- src/matrix/Session.js | 2 +- src/matrix/e2ee/olm/Encryption.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index ac060b0b..ae1dea61 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -126,9 +126,9 @@ export class Session { const olmDecryption = new OlmDecryption( this._e2eeAccount, PICKLE_KEY, - this._olm, this._platform.clock.now, this._user.id, + this._olm, senderKeyLock ); this._olmEncryption = new OlmEncryption( diff --git a/src/matrix/e2ee/olm/Encryption.ts b/src/matrix/e2ee/olm/Encryption.ts index ebc38170..9b754272 100644 --- a/src/matrix/e2ee/olm/Encryption.ts +++ b/src/matrix/e2ee/olm/Encryption.ts @@ -64,12 +64,12 @@ const MAX_BATCH_SIZE = 20; export class Encryption { constructor( private readonly account: Account, + private readonly pickleKey: string, private readonly olm: Olm, - private readonly olmUtil: Olm.Utility, - private readonly ownUserId: string, private readonly storage: Storage, private readonly now: () => number, - private readonly pickleKey: string, + private readonly ownUserId: string, + private readonly olmUtil: Olm.Utility, private readonly senderKeyLock: LockMap ) {}