mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +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