add comment explaining data passing hack
This commit is contained in:
parent
2271ec7634
commit
b03e6a8d73
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
showRoom: function(roomId) {
|
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;
|
var room;
|
||||||
for (var i = 0; i < this.state.publicRooms.length; ++i) {
|
for (var i = 0; i < this.state.publicRooms.length; ++i) {
|
||||||
if (this.state.publicRooms[i].room_id == roomId) {
|
if (this.state.publicRooms[i].room_id == roomId) {
|
||||||
|
|
Loading…
Reference in a new issue