Move ComposerToolbar view required dependencies to the view model and read them, similarly to the other views, through the context's view state.

This commit is contained in:
Stefan Ceriu
2025-06-06 14:15:58 +03:00
committed by Stefan Ceriu
parent 4072031f4e
commit af97567edc
7 changed files with 40 additions and 57 deletions
@@ -67,7 +67,7 @@ class ComposerToolbarViewModelTests: XCTestCase {
}
func testHandleKeyCommand() {
XCTAssertTrue(viewModel.keyCommands.count == 1)
XCTAssertTrue(viewModel.context.viewState.keyCommands.count == 1)
}
func testComposerFocusAfterEnablingRTE() {