dont download update until approved

This commit is contained in:
Hailey
2025-07-25 08:57:01 -07:00
parent af45395698
commit 52a53d3860
+1 -1
View File
@@ -75,7 +75,6 @@ export function useApplyPullRequestOTAUpdate() {
await setExtraParamsPullRequest(channel) await setExtraParamsPullRequest(channel)
const res = await checkForUpdateAsync() const res = await checkForUpdateAsync()
if (res.isAvailable) { if (res.isAvailable) {
await fetchUpdateAsync()
Alert.alert( Alert.alert(
'Deployment Available', 'Deployment Available',
`A deployment of ${channel} is availalble. Applying this deployment may result in a bricked installation, in which case you will need to reinstall the app and may lose local data. Are you sure you want to proceed?`, `A deployment of ${channel} is availalble. Applying this deployment may result in a bricked installation, in which case you will need to reinstall the app and may lose local data. Are you sure you want to proceed?`,
@@ -88,6 +87,7 @@ export function useApplyPullRequestOTAUpdate() {
text: 'Relaunch', text: 'Relaunch',
style: 'default', style: 'default',
onPress: async () => { onPress: async () => {
await fetchUpdateAsync()
await reloadAsync() await reloadAsync()
}, },
}, },