mirror of https://github.com/vector-im/riot-web
When joining, use a roomAlias if we have it
And default to the current roomId otherwisepull/21833/head
parent
df625b0d31
commit
cd6786114b
|
@ -137,7 +137,9 @@ class RoomViewStore extends Store {
|
||||||
this._setState({
|
this._setState({
|
||||||
joining: true,
|
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({
|
dis.dispatch({
|
||||||
action: 'joined_room',
|
action: 'joined_room',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue