Composer: Fix account switching not posting on the correct account
This commit is contained in:
parent
02aa91f432
commit
5ff0330fb7
|
@ -80,6 +80,10 @@ public struct StatusEditorView: View {
|
|||
object: nil)
|
||||
}
|
||||
}
|
||||
.onChange(of: currentAccount.account?.id, perform: { _ in
|
||||
viewModel.client = client
|
||||
viewModel.currentAccount = currentAccount.account
|
||||
})
|
||||
.background(theme.primaryBackgroundColor)
|
||||
.navigationTitle(viewModel.mode.title)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
|
|
Loading…
Reference in New Issue