mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-22 21:46:28 +00:00
Fix preference update pipeline
This commit is contained in:
parent
14fc4cdef5
commit
510a6db11e
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ extension IdentityService {
|
|||
|
||||
func updatePreferences(_ preferences: Identity.Preferences) -> AnyPublisher<Never, Error> {
|
||||
identityDatabase.updatePreferences(preferences, forIdentityID: identity.id)
|
||||
.collect()
|
||||
.zip(Just(self).first().setFailureType(to: Error.self))
|
||||
.filter { $1.identity.preferences.useServerPostingReadingPreferences }
|
||||
.map { _ in () }
|
||||
|
|
Loading…
Reference in a new issue