Only update current active user in-memory state

This commit is contained in:
Marcus Kida 2023-05-09 16:07:08 +02:00
parent 5dde21c2ae
commit 141d3561dd
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 4 additions and 4 deletions

View File

@ -68,11 +68,11 @@ public final class AuthenticationService: NSObject {
}
public func fetchFollowingAndBlockedAsync() {
/// we're dispatching this as a separate async call to not block the caller
/// We're dispatching this as a separate async call to not block the caller
/// Also we'll only be updating the current active user as the state will be reflesh upon user-change anyways
Task {
for authBox in mastodonAuthenticationBoxes {
do { try await fetchFollowedBlockedUserIds(authBox) }
catch {}
if let authBox = mastodonAuthenticationBoxes.first {
try await fetchFollowedBlockedUserIds(authBox) }
}
}
}