From d6d9d4a519a79bad35c447e18281df7beeef2475 Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Sun, 8 Dec 2024 22:55:20 +0100 Subject: [PATCH] Make sure FirestoreAccountStorage provider always notifies once details are retrieved --- Package.swift | 2 +- .../SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index e49a1d2..17e361d 100644 --- a/Package.swift +++ b/Package.swift @@ -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(), diff --git a/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift b/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift index 85ffbbe..533a8c0 100644 --- a/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift +++ b/Sources/SpeziFirebaseAccountStorage/FirestoreAccountStorage.swift @@ -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)