Add id check

This commit is contained in:
Justin Mazzocchi 2021-01-28 11:16:23 -08:00
parent e44d0218fa
commit 1151fc7563
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -88,7 +88,9 @@ private extension RootViewModel {
let identityPublisher = identityService.identityPublisher(immediate: immediate) let identityPublisher = identityService.identityPublisher(immediate: immediate)
.catch { [weak self] _ -> Empty<Identity, Never> in .catch { [weak self] _ -> Empty<Identity, Never> in
DispatchQueue.main.async { DispatchQueue.main.async {
self?.identitySelected(id: self?.mostRecentlyUsedIdentityId, immediate: false) if self?.navigationViewModel?.identityContext.identity.id == id {
self?.identitySelected(id: self?.mostRecentlyUsedIdentityId, immediate: false)
}
} }
return Empty() return Empty()