check for a deployment before prompting to apply it

Reloading into an update re-delivers the deep link that triggered it, and
the same link can also just be tapped again. Checking first means both
cases are silent when there is nothing new to apply - the version
mismatch warning no longer fires ahead of the check either.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-07-30 22:50:25 +03:00
parent 870ea9623e
commit 384987262b
2 changed files with 33 additions and 21 deletions
+2 -2
View File
@@ -94,9 +94,9 @@ export function useIntentHandler() {
: null
if (!channel) {
Alert.alert('Error', 'No channel provided to look for.')
} else {
tryApplyUpdate(channel, appVersion)
return
}
tryApplyUpdate(channel, appVersion)
return
}
default: {