Composer: Fix account switching not posting on the correct account

This commit is contained in:
Thomas Ricouard 2023-01-18 08:07:09 +01:00
parent 02aa91f432
commit 5ff0330fb7

View file

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