Modify RVS test to wait until room loaded
This allows for the alias resolution to occur before a join is attempted. In theory, join_room could in future do an optional view_room-esque thing before attemping a join which would be less fragile than dispatching things in the right order. Also, make sure the store indicates that it is not loading when a room ID has been used - no alias resolution need take place.
This commit is contained in:
parent
16c4c14a16
commit
7808994b71
2 changed files with 12 additions and 9 deletions
|
@ -87,10 +87,10 @@ class RoomViewStore extends Store {
|
|||
if (payload.room_id) {
|
||||
this._setState({
|
||||
roomId: payload.room_id,
|
||||
roomLoading: false,
|
||||
roomLoadError: null,
|
||||
});
|
||||
}
|
||||
|
||||
if (payload.room_alias && !payload.room_id) {
|
||||
} else if (payload.room_alias) {
|
||||
this._setState({
|
||||
roomId: null,
|
||||
roomAlias: payload.room_alias,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue