Skip to content

Commit

Permalink
Make sure FirestoreAccountStorage provider always notifies once detai…
Browse files Browse the repository at this point in the history
…ls are retrieved
  • Loading branch information
Supereg committed Dec 8, 2024
1 parent 7c68296 commit d6d9d4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let package = Package(
.package(url: "https://github.com/StanfordSpezi/SpeziFoundation", from: "2.0.0"),
.package(url: "https://github.com/StanfordSpezi/Spezi", from: "1.7.1"),
.package(url: "https://github.com/StanfordSpezi/SpeziViews", from: "1.6.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziAccount", from: "2.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziAccount", branch: "fix/wait-for-complete-details"),
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "11.0.0"),
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.2.0")
] + swiftLintPackage(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ public actor FirestoreAccountStorage: AccountStorageProvider {

let details = buildAccountDetails(from: snapshot, keys: Array(keys))

guard !details.isEmpty else {
return
}

let localCache = localCache
await localCache.communicateRemoteChanges(for: accountId, details)

Expand Down

0 comments on commit d6d9d4a

Please sign in to comment.