From 42e15c9332f317388e80dca61dd10f9a0bf66e5c Mon Sep 17 00:00:00 2001 From: Paul Kraft Date: Wed, 11 Sep 2024 10:30:55 -0700 Subject: [PATCH] Add snapshot listener actually --- .../SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift b/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift index 04cebbf..85ffbbe 100644 --- a/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift +++ b/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift @@ -196,7 +196,7 @@ public actor FirestoreAccountStorage: AccountStorageProvider { let localCache = localCache let cached = await localCache.loadEntry(for: accountId, keys) - if listenerRegistrations[accountId] != nil { // check that there is a snapshot listener in place + if listenerRegistrations[accountId] == nil { // check that there is a snapshot listener in place snapshotListener(for: accountId, with: keys) }