Skip to content

Commit b03e6a8

Browse files
committed
add comment explaining data passing hack
1 parent 2271ec7 commit b03e6a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/structures/RoomDirectory.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ module.exports = React.createClass({
6666
},
6767

6868
showRoom: function(roomId) {
69+
// extract the metadata from the publicRooms structure to pass
70+
// as out-of-band data to view_room, because we get information
71+
// here that we can't get other than by joining the room in some
72+
// cases.
6973
var room;
7074
for (var i = 0; i < this.state.publicRooms.length; ++i) {
7175
if (this.state.publicRooms[i].room_id == roomId) {

0 commit comments

Comments
 (0)