Weakify self

This commit is contained in:
Justin Mazzocchi 2020-08-23 22:23:50 -07:00
parent 3d8fd8d49b
commit bf19ab7641
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -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()