element-hq / hydrogen-web

Lightweight matrix client with legacy and mobile browser support
Apache License 2.0
650 stars 127 forks source link

Expose all viewModels from web to SDK lib.ts to be able to override the chat display #1122

Closed leccyril closed 1 year ago

leccyril commented 1 year ago

Until web version 0.4.0 we used Sdk library with web as dependency, indeed we where able to change the display of the chat (hide room creation or room right side or parameters button), and add visio button. The issue was we had to import as dependency, but now after ugrading to version 0.4.0 it is not working, you suggested us to create feature request to expose the viewmodel to be able to override it and change it.

Describe the solution you'd like Expose in the SDK all the viewModel as TemplateView, SessionView, ListView,StaticView,RoomBeingCreatedView etc to be able to redefine the display without importing web

Describe alternatives you've considered Import web as dependency an do not upgrade

leccyril commented 1 year ago

will create a PR