mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Add id check
This commit is contained in:
parent
e44d0218fa
commit
1151fc7563
1 changed files with 3 additions and 1 deletions
|
@ -88,7 +88,9 @@ private extension RootViewModel {
|
|||
let identityPublisher = identityService.identityPublisher(immediate: immediate)
|
||||
.catch { [weak self] _ -> Empty<Identity, Never> in
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue