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:
commit
129d3693b2
1 changed files with 1 additions and 7 deletions
|
@ -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();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue