Reuse showRoom for onJoinClick so we join using alias if its available
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
e18b38c409
commit
54d98c22ba
1 changed files with 1 additions and 6 deletions
|
@ -390,12 +390,7 @@ module.exports = createReactClass({
|
||||||
|
|
||||||
onJoinClick: function(ev, room) {
|
onJoinClick: function(ev, room) {
|
||||||
this.props.onFinished();
|
this.props.onFinished();
|
||||||
MatrixClientPeg.get().joinRoom(room.room_id);
|
this.showRoom(room, null, true);
|
||||||
dis.dispatch({
|
|
||||||
action: 'view_room',
|
|
||||||
room_id: room.room_id,
|
|
||||||
joining: true,
|
|
||||||
});
|
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue