mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Crypto does not need to be a member
This commit is contained in:
parent
9f46a127e0
commit
d8987ee54b
@ -60,7 +60,6 @@ export class SecretSharing {
|
|||||||
private readonly ourUserId: string;
|
private readonly ourUserId: string;
|
||||||
private readonly olmEncryption: OlmEncryption;
|
private readonly olmEncryption: OlmEncryption;
|
||||||
private readonly waitMap: Map<string, { deferred: Deferred<any>, name: string }> = new Map();
|
private readonly waitMap: Map<string, { deferred: Deferred<any>, name: string }> = new Map();
|
||||||
private readonly crypto: Crypto;
|
|
||||||
private readonly encoding: Encoding;
|
private readonly encoding: Encoding;
|
||||||
private readonly aesEncryption: AESEncryption;
|
private readonly aesEncryption: AESEncryption;
|
||||||
private readonly crossSigning: ObservableValue<CrossSigning | undefined>;
|
private readonly crossSigning: ObservableValue<CrossSigning | undefined>;
|
||||||
@ -74,11 +73,10 @@ export class SecretSharing {
|
|||||||
this.deviceTracker = options.deviceTracker;
|
this.deviceTracker = options.deviceTracker;
|
||||||
this.ourUserId = options.ourUserId;
|
this.ourUserId = options.ourUserId;
|
||||||
this.olmEncryption = options.olmEncryption;
|
this.olmEncryption = options.olmEncryption;
|
||||||
this.crypto = options.crypto;
|
|
||||||
this.encoding = options.encoding;
|
this.encoding = options.encoding;
|
||||||
this.crossSigning = options.crossSigning;
|
this.crossSigning = options.crossSigning;
|
||||||
this.logger = options.logger;
|
this.logger = options.logger;
|
||||||
this.aesEncryption = new AESEncryption(this.storage, this.crypto, this.encoding);
|
this.aesEncryption = new AESEncryption(this.storage, options.crypto, this.encoding);
|
||||||
(window as any).foo = this;
|
(window as any).foo = this;
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user