mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Show backup import UI on Link-and-Sync
This commit is contained in:
@@ -227,6 +227,20 @@ export class Provisioner {
|
||||
};
|
||||
}
|
||||
|
||||
public isLinkAndSync(): boolean {
|
||||
strictAssert(
|
||||
this.state.step === Step.ReadyToLink,
|
||||
`Invalid state for prepareLinkData: ${this.state.step}`
|
||||
);
|
||||
|
||||
const { envelope } = this.state;
|
||||
|
||||
return (
|
||||
isLinkAndSyncEnabled(this.appVersion) &&
|
||||
Bytes.isNotEmpty(envelope.ephemeralBackupKey)
|
||||
);
|
||||
}
|
||||
|
||||
private handleRequest(request: IncomingWebSocketRequest): void {
|
||||
const pubKey = this.cipher.getPublicKey();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user