vector-im-hydrogen-web/src/domain/session/room
Bruno Windels 4c5fe824c2
Merge pull request #569 from vector-im/fix-400
Show redacted tile for redacted messages in encrypted rooms
2021-11-05 15:57:36 +01:00
..
timeline Merge pull request #569 from vector-im/fix-400 2021-11-05 15:57:36 +01:00
ComposerViewModel.js changes should be true when replyVM is not set and we set an entry 2021-09-16 22:28:19 +02:00
InviteViewModel.js Correctly color archived and invited rooms 2021-06-29 16:50:42 -07: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 Make RoomViewModel's room public and stop feeding it to tileCreator 2021-08-06 10:40:25 -07:00
UnknownRoomViewModel.js clarify with comments 2021-05-18 11:54:18 +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.