mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
fix(acquisition): close invite privacy gaps
This commit is contained in:
1 parent
1c7084c033
commit
4a57f31615
15 files changed
+213
-70
No files matched your search
@@ -210,7 +210,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
|
||||
if (unlockUserId) {
|
||||
await clearPairedUnlockSeen(unlockUserId, unlockCoupleId);
|
||||
}
|
||||
await clearPendingInviteCode();
|
||||
await clearPendingInviteCode(unlockUserId);
|
||||
|
||||
// Clear local state FIRST to ensure UI updates even if Supabase call fails
|
||||
set({
|
||||
@@ -259,7 +259,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
|
||||
});
|
||||
// Clear other stores when user signs out
|
||||
if (user === null) {
|
||||
void clearPendingInviteCode();
|
||||
void clearPendingInviteCode(priorUserId);
|
||||
if (priorUserId) {
|
||||
void clearPairedUnlockSeen(priorUserId, priorCoupleId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user