forked from mystiq/hydrogen-web
fixup: ctor argument order
as it was an object before, order didn't matter
This commit is contained in:
parent
78e0bb1ff0
commit
620409b3f0
2 changed files with 4 additions and 4 deletions
|
@ -126,9 +126,9 @@ export class Session {
|
||||||
const olmDecryption = new OlmDecryption(
|
const olmDecryption = new OlmDecryption(
|
||||||
this._e2eeAccount,
|
this._e2eeAccount,
|
||||||
PICKLE_KEY,
|
PICKLE_KEY,
|
||||||
this._olm,
|
|
||||||
this._platform.clock.now,
|
this._platform.clock.now,
|
||||||
this._user.id,
|
this._user.id,
|
||||||
|
this._olm,
|
||||||
senderKeyLock
|
senderKeyLock
|
||||||
);
|
);
|
||||||
this._olmEncryption = new OlmEncryption(
|
this._olmEncryption = new OlmEncryption(
|
||||||
|
|
|
@ -64,12 +64,12 @@ const MAX_BATCH_SIZE = 20;
|
||||||
export class Encryption {
|
export class Encryption {
|
||||||
constructor(
|
constructor(
|
||||||
private readonly account: Account,
|
private readonly account: Account,
|
||||||
|
private readonly pickleKey: string,
|
||||||
private readonly olm: Olm,
|
private readonly olm: Olm,
|
||||||
private readonly olmUtil: Olm.Utility,
|
|
||||||
private readonly ownUserId: string,
|
|
||||||
private readonly storage: Storage,
|
private readonly storage: Storage,
|
||||||
private readonly now: () => number,
|
private readonly now: () => number,
|
||||||
private readonly pickleKey: string,
|
private readonly ownUserId: string,
|
||||||
|
private readonly olmUtil: Olm.Utility,
|
||||||
private readonly senderKeyLock: LockMap<string>
|
private readonly senderKeyLock: LockMap<string>
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue