fix(startup): restore keychain consent barrier

This commit is contained in:
NimBold
2026-07-15 21:09:45 +03:30
parent 6e6ae51395
commit d2479f52be
7 changed files with 67 additions and 20 deletions
+4 -2
View File
@@ -25,9 +25,11 @@ export const getKeychainStartupDecision = ({
};
}
const versionChanged = Boolean(appVersion) && approvedVersion !== appVersion;
const versionKnown = Boolean(appVersion.trim());
const versionChanged = versionKnown && approvedVersion !== appVersion;
const mustDeferAccess = !accessGranted || !versionKnown || versionChanged;
return {
deferKeychainHydration: !accessGranted || versionChanged,
deferKeychainHydration: mustDeferAccess,
showKeychainPrompt: versionChanged || (!accessGranted && !promptDismissed)
};
};