From b03e6a8d73dda39871e2cd372202a534852b02a3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 2 Mar 2016 14:34:31 +0000 Subject: [PATCH] add comment explaining data passing hack --- src/components/structures/RoomDirectory.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index 3fecd3f68..f0b20e3f9 100644 --- a/src/components/structures/RoomDirectory.js +++ b/src/components/structures/RoomDirectory.js @@ -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) {