mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Change comment style
This commit is contained in:
parent
c0e29fe21b
commit
d5d3e76659
@ -26,13 +26,14 @@ export class SecretFetcher {
|
|||||||
public secretSharing: SecretSharing;
|
public secretSharing: SecretSharing;
|
||||||
|
|
||||||
async getSecret(name: string): Promise<string | undefined> {
|
async getSecret(name: string): Promise<string | undefined> {
|
||||||
;
|
|
||||||
return await this.secretStorage?.readSecret(name) ??
|
return await this.secretStorage?.readSecret(name) ??
|
||||||
await this.secretSharing?.getLocallyStoredSecret(name);
|
await this.secretSharing?.getLocallyStoredSecret(name);
|
||||||
// note that we don't ask another device for secret here
|
/**
|
||||||
// that should be done explicitly since it can take arbitrary
|
* Note that we don't ask another device for secret here;
|
||||||
// amounts of time to be fulfilled as the other devices may
|
* that should be done explicitly since it can take arbitrary
|
||||||
// be offline etc...
|
* amounts of time to be fulfilled as the other devices may
|
||||||
|
* be offline etc...
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
setSecretStorage(storage: SecretStorage) {
|
setSecretStorage(storage: SecretStorage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user