add comment explaining data passing hack

pull/1069/head
David Baker 2016-03-02 14:34:31 +00:00
parent 2271ec7634
commit b03e6a8d73
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ module.exports = React.createClass({
},
showRoom: function(roomId) {
// extract the metadata from the publicRooms structure to pass
// as out-of-band data to view_room, because we get information
// here that we can't get other than by joining the room in some
// cases.
var room;
for (var i = 0; i < this.state.publicRooms.length; ++i) {
if (this.state.publicRooms[i].room_id == roomId) {