Skip to content

Commit

Permalink
Add snapshot listener actually
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Sep 11, 2024
1 parent d0cb58f commit 42e15c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 42e15c9

Please sign in to comment.