Basic support for local encrypted backups

This commit is contained in:
ayumi-signal
2025-05-12 14:15:11 -07:00
committed by GitHub
parent 2df601b135
commit a2c74c3a8b
37 changed files with 1782 additions and 176 deletions

View File

@@ -132,6 +132,7 @@ export type EphemeralBackupType = Readonly<
export type LinkOptionsType = Readonly<{
extraConfig?: Partial<RendererConfigType>;
ephemeralBackup?: EphemeralBackupType;
localBackup?: string;
}>;
type BootstrapInternalOptions = BootstrapOptions &
@@ -376,6 +377,7 @@ export class Bootstrap {
public async link({
extraConfig,
ephemeralBackup,
localBackup,
}: LinkOptionsType = {}): Promise<App> {
debug('linking');
@@ -383,6 +385,10 @@ export class Bootstrap {
const window = await app.getWindow();
if (localBackup != null) {
await app.stageLocalBackupForImport(localBackup);
}
debug('looking for QR code or relink button');
const qrCode = window.locator(
'.module-InstallScreenQrCodeNotScannedStep__qr-code__code'