mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Weakify self
This commit is contained in:
parent
3d8fd8d49b
commit
bf19ab7641
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ extension RootViewModel {
|
|||
identityService.observationErrors
|
||||
.receive(on: RunLoop.main)
|
||||
.map { [weak self] _ in self?.identitiesService.mostRecentlyUsedIdentityID }
|
||||
.sink(receiveValue: newIdentitySelected(id:))
|
||||
.sink { [weak self] in self?.newIdentitySelected(id: $0) }
|
||||
.store(in: &cancellables)
|
||||
|
||||
identityService.updateLastUse()
|
||||
|
|
Loading…
Reference in a new issue