Merge pull request #3444 from matrix-org/t3chguy/nvl/fix_room_directory

Reuse showRoom for onJoinClick so we join using alias if its available
This commit is contained in:
Bruno Windels 2019-09-16 16:13:28 +00:00 committed by GitHub
commit 129d3693b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,13 +389,7 @@ module.exports = createReactClass({
}, },
onJoinClick: function(ev, room) { onJoinClick: function(ev, room) {
this.props.onFinished(); this.showRoom(room, null, true);
MatrixClientPeg.get().joinRoom(room.room_id);
dis.dispatch({
action: 'view_room',
room_id: room.room_id,
joining: true,
});
ev.stopPropagation(); ev.stopPropagation();
}, },