When joining, use a roomAlias if we have it

And default to the current roomId otherwise
pull/21833/head
Luke Barnard 2017-06-08 17:40:53 +01:00
parent df625b0d31
commit cd6786114b
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ class RoomViewStore extends Store {
this._setState({
joining: true,
});
MatrixClientPeg.get().joinRoom(this._state.roomId, payload.opts).done(() => {
MatrixClientPeg.get().joinRoom(
this._state.roomAlias || this._state.roomId, payload.opts,
).done(() => {
dis.dispatch({
action: 'joined_room',
});