mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 00:48:19 +01:00
Show update UI on backup version mismatch
This commit is contained in:
@@ -32,7 +32,7 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
|
||||
const { openInbox } = useAppActions();
|
||||
const { startInstaller, finishInstall, retryBackupImport } =
|
||||
useInstallerActions();
|
||||
const { startUpdate } = useUpdatesActions();
|
||||
const { startUpdate, forceUpdate } = useUpdatesActions();
|
||||
const hasExpired = useSelector(hasExpiredSelector);
|
||||
|
||||
const [deviceName, setDeviceName] = useState<string>('');
|
||||
@@ -80,6 +80,7 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
|
||||
updates,
|
||||
currentVersion: window.getVersion(),
|
||||
startUpdate,
|
||||
forceUpdate,
|
||||
retryGetQrCode: startInstaller,
|
||||
OS: OS.getName(),
|
||||
isStaging: isStagingServer(),
|
||||
@@ -112,9 +113,15 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
|
||||
backupStep: installerState.backupStep,
|
||||
currentBytes: installerState.currentBytes,
|
||||
totalBytes: installerState.totalBytes,
|
||||
hasError: installerState.hasError,
|
||||
error: installerState.error,
|
||||
onCancel: onCancelBackupImport,
|
||||
onRetry: retryBackupImport,
|
||||
|
||||
updates,
|
||||
currentVersion: window.getVersion(),
|
||||
forceUpdate,
|
||||
startUpdate,
|
||||
OS: OS.getName(),
|
||||
},
|
||||
};
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user