Add id check
This commit is contained in:
parent
e44d0218fa
commit
1151fc7563
|
@ -88,8 +88,10 @@ 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 {
|
||||||
|
if self?.navigationViewModel?.identityContext.identity.id == id {
|
||||||
self?.identitySelected(id: self?.mostRecentlyUsedIdentityId, immediate: false)
|
self?.identitySelected(id: self?.mostRecentlyUsedIdentityId, immediate: false)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return Empty()
|
return Empty()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue