Fix birthday bug being perpetually snoozed (#9488)

This commit is contained in:
Eric Bailey
2025-12-05 12:17:43 -06:00
committed by GitHub
parent 89223d92d1
commit db81cefb86
2 changed files with 23 additions and 4 deletions
+9
View File
@@ -20,6 +20,15 @@ export function snoozeBirthdateUpdateAllowedForDid(did: string) {
account.set([did, 'birthdateLastUpdatedAt'], new Date().toISOString())
}
/**
* Checks if we've already snoozed bday updates. In some cases, if one is
* present, we don't need to set another, such as in AA when reading initial
* data on load.
*/
export function hasSnoozedBirthdateUpdateForDid(did: string) {
return !!account.get([did, 'birthdateLastUpdatedAt'])
}
/**
* Returns whether a birthdate update is currently allowed, based on the
* last update timestamp stored locally.