From 510a6db11edafc584b421fb0a46aa8fc5e7a8777 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Sun, 30 Aug 2020 00:16:37 -0700 Subject: [PATCH] Fix preference update pipeline --- Services/IdentityService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Services/IdentityService.swift b/Services/IdentityService.swift index 6cff564..a0e40e1 100644 --- a/Services/IdentityService.swift +++ b/Services/IdentityService.swift @@ -153,6 +153,7 @@ extension IdentityService { func updatePreferences(_ preferences: Identity.Preferences) -> AnyPublisher { identityDatabase.updatePreferences(preferences, forIdentityID: identity.id) + .collect() .zip(Just(self).first().setFailureType(to: Error.self)) .filter { $1.identity.preferences.useServerPostingReadingPreferences } .map { _ in () }