Filter identity updates

This commit is contained in:
Justin Mazzocchi 2020-09-09 13:21:04 -07:00
parent 2dd1f3ebdd
commit 4c1f0e2452
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -92,12 +92,14 @@ private extension RootViewModel {
}
.share()
observation.map {
Identification(
identity: $0,
observation: observation.eraseToAnyPublisher(),
service: identityService)
}
.assign(to: &$identification)
observation
.filter { [weak self] in $0.id != self?.identification?.identity.id }
.map {
Identification(
identity: $0,
observation: observation.eraseToAnyPublisher(),
service: identityService)
}
.assign(to: &$identification)
}
}