mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
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:
committed by
Stefan Ceriu
parent
4072031f4e
commit
af97567edc
@@ -65,6 +65,8 @@ enum ComposerAttachmentType {
|
||||
}
|
||||
|
||||
struct ComposerToolbarViewState: BindableState {
|
||||
let wysiwygViewModel: WysiwygComposerViewModel
|
||||
|
||||
var composerMode: ComposerMode = .default
|
||||
var composerEmpty = true
|
||||
/// Could be false if sending is disabled in the room
|
||||
@@ -76,6 +78,8 @@ struct ComposerToolbarViewState: BindableState {
|
||||
var isRoomEncrypted: Bool
|
||||
var isLocationSharingEnabled: Bool
|
||||
|
||||
var keyCommands: [WysiwygKeyCommand] = []
|
||||
|
||||
var bindings: ComposerToolbarViewStateBindings
|
||||
|
||||
var isUploading: Bool {
|
||||
|
||||
Reference in New Issue
Block a user