diff --git a/app.js b/app.js index 64ee5e1..be34cd4 100644 --- a/app.js +++ b/app.js @@ -72,7 +72,12 @@ let App = create({ } else if (state == "PREPARED") { } }) - client.on("event", (event) => { + client.on("Room.localEchoUpdated", (event) => { + let rooms = {} + client.getRooms().forEach((room) => { + rooms[room.roomId] = room + }) + this.setState({rooms: rooms}) }) client.startClient() }, @@ -88,7 +93,7 @@ let App = create({