Minor cleanups to initialiseDehydration (#29261)
* dehydration: fix documentation * initialiseDehydration: improve name ... to make it clearer that it does nothing if dehydration is disabled * initialiseDehydration: remove dependency on MatrixClientPeg We're trying to move away from relying on `MatrixClientPeg` everywhere, and this is a particularly easy win.
This commit is contained in:
committed by
GitHub
parent
c47ce59478
commit
09db599fe0
@@ -20,7 +20,7 @@ import { type Device, type SecretStorage } from "matrix-js-sdk/src/matrix";
|
||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
import { AccessCancelledError, accessSecretStorage } from "../SecurityManager";
|
||||
import { asyncSome } from "../utils/arrays";
|
||||
import { initialiseDehydration } from "../utils/device/dehydration";
|
||||
import { initialiseDehydrationIfEnabled } from "../utils/device/dehydration";
|
||||
|
||||
export enum Phase {
|
||||
Loading = 0,
|
||||
@@ -149,7 +149,7 @@ export class SetupEncryptionStore extends EventEmitter {
|
||||
);
|
||||
resolve();
|
||||
|
||||
await initialiseDehydration();
|
||||
await initialiseDehydrationIfEnabled(cli);
|
||||
|
||||
if (backupInfo) {
|
||||
await cli.getCrypto()?.loadSessionBackupPrivateKeyFromSecretStorage();
|
||||
|
||||
Reference in New Issue
Block a user