When joining, use a roomAlias if we have it
And default to the current roomId otherwise
This commit is contained in:
parent
df625b0d31
commit
cd6786114b
1 changed files with 3 additions and 1 deletions
|
@ -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',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue