Browse Source
Unify room synchronization for users and guests
Unify room synchronization for users and guests
The main page gives a user access to more than one room, while the public page only gives a guest access to a single room; guests can not even query the list of rooms in the backend, so the app sets a room collection only for users, but not guests. Before, the room model only supported being part of a room collection, so there was no room model to be used by the UI for guests. Now, the room model was extended to support both being part of a room collection and being a standalone model, and now the signaling can synchronize a single room model too instead of only a room collection, so the UI can rely on the room model set as active to be up to date for both users and guests. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>pull/458/head
3 changed files with 62 additions and 24 deletions
-
44js/app.js
-
17js/models/room.js
-
25js/signaling.js
Write
Preview
Loading…
Cancel
Save
Reference in new issue