Skip to content

Commit 332354e

Browse files
committed
Uncommit 71cb04c (I failed to branch)
1 parent 71cb04c commit 332354e

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/components/structures/RoomDirectory.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,27 +66,9 @@ module.exports = React.createClass({
6666
},
6767

6868
showRoom: function(roomId) {
69-
var room;
70-
for (var i = 0; i < this.state.publicRooms.length; ++i) {
71-
if (this.state.publicRooms[i].room_id == roomId) {
72-
room = this.state.publicRooms[i];
73-
break;
74-
}
75-
}
76-
var oob_data = {};
77-
if (room) {
78-
oob_data = {
79-
avatarUrl: room.avatar_url,
80-
// XXX: This logic is duplicated from the JS SDK which
81-
// would normally decide what the name is.
82-
name: room.name || room.aliases[0],
83-
};
84-
}
85-
8669
dis.dispatch({
8770
action: 'view_room',
88-
room_id: roomId,
89-
oob_data: oob_data,
71+
room_id: roomId
9072
});
9173
},
9274

0 commit comments

Comments
 (0)