mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
fixed bug where the context menu for CompositionView.changeIdentityButton didn't update properly after changing identity
This commit is contained in:
parent
9310d281ce
commit
36d58ab99a
1 changed files with 7 additions and 4 deletions
|
@ -203,11 +203,14 @@ private extension CompositionView {
|
||||||
self.changeIdentityButton.accessibilityLabel = $0.identity.handle
|
self.changeIdentityButton.accessibilityLabel = $0.identity.handle
|
||||||
self.changeIdentityButton.accessibilityHint =
|
self.changeIdentityButton.accessibilityHint =
|
||||||
NSLocalizedString("compose.change-identity-button.accessibility-hint", comment: "")
|
NSLocalizedString("compose.change-identity-button.accessibility-hint", comment: "")
|
||||||
}
|
|
||||||
.store(in: &cancellables)
|
|
||||||
|
|
||||||
parentViewModel.identityContext.$authenticatedOtherIdentities
|
$0.$authenticatedOtherIdentities
|
||||||
.sink { [weak self] in self?.changeIdentityButton.menu = self?.changeIdentityMenu(identities: $0) }
|
.sink { [weak self] authenticatedOtherIdentities in
|
||||||
|
self?.changeIdentityButton.menu =
|
||||||
|
self?.changeIdentityMenu(identities: authenticatedOtherIdentities)
|
||||||
|
}
|
||||||
|
.store(in: &self.cancellables)
|
||||||
|
}
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
viewModel.$attachmentViewModels
|
viewModel.$attachmentViewModels
|
||||||
|
|
Loading…
Reference in a new issue