This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/src/domain/session/room
RMidhunSuresh b521797f4d Explain the reason for double escapes
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-05-11 22:28:14 +05:30
..
timeline Explain the reason for double escapes 2021-05-11 22:28:14 +05:30
InviteViewModel.js pass avatar sizes from view to view model rather than repeating there 2021-04-28 14:11:35 +02:00
LightboxViewModel.js implement first draft of image lightbox 2020-10-30 15:20:11 +01:00
README.md clarify 2021-04-28 10:05:21 +02:00
RoomViewModel.js pass avatar sizes from view to view model rather than repeating there 2021-04-28 14:11:35 +02:00

"Room" view models

InviteViewModel and RoomViewModel are interchangebly used as "room view model": - SessionViewModel.roomViewModel can be an instance of either - RoomGridViewModel.roomViewModelAt(i) can return an instance of either

This is because they are accessed by the same url and need to transition into each other, in these two locations. Having two methods, especially in RoomGridViewModel would have been more cumbersome, even though this is not in line with how different view models are exposed in SessionViewModel.

They share an id and kind property, the latter can be used to differentiate them from the view, and a focus method.