Fix preference update pipeline
This commit is contained in:
parent
14fc4cdef5
commit
510a6db11e
|
@ -153,6 +153,7 @@ extension IdentityService {
|
||||||
|
|
||||||
func updatePreferences(_ preferences: Identity.Preferences) -> AnyPublisher<Never, Error> {
|
func updatePreferences(_ preferences: Identity.Preferences) -> AnyPublisher<Never, Error> {
|
||||||
identityDatabase.updatePreferences(preferences, forIdentityID: identity.id)
|
identityDatabase.updatePreferences(preferences, forIdentityID: identity.id)
|
||||||
|
.collect()
|
||||||
.zip(Just(self).first().setFailureType(to: Error.self))
|
.zip(Just(self).first().setFailureType(to: Error.self))
|
||||||
.filter { $1.identity.preferences.useServerPostingReadingPreferences }
|
.filter { $1.identity.preferences.useServerPostingReadingPreferences }
|
||||||
.map { _ in () }
|
.map { _ in () }
|
||||||
|
|
Loading…
Reference in New Issue