mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-29 03:21:02 +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
|
identityService.observationErrors
|
||||||
.receive(on: RunLoop.main)
|
.receive(on: RunLoop.main)
|
||||||
.map { [weak self] _ in self?.identitiesService.mostRecentlyUsedIdentityID }
|
.map { [weak self] _ in self?.identitiesService.mostRecentlyUsedIdentityID }
|
||||||
.sink(receiveValue: newIdentitySelected(id:))
|
.sink { [weak self] in self?.newIdentitySelected(id: $0) }
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
identityService.updateLastUse()
|
identityService.updateLastUse()
|
||||||
|
|
Loading…
Reference in a new issue