Skip to content

SendMessageViewModel Takes in Parameters in Instantiate #32

@sushidoggg

Description

@sushidoggg

I believe we should be able to instantiate a ViewModel by

viewModel = new ViewModel()

without any additional inputs. But currently the SendMessageViewModel takes in User currentUser, ChatChannel channel, SendMessageState state. We could refactor the code to remove these dependencies by obtaining these data from OutputData.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions