If no roomId was saved go to space home
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
ef3d87f8e8
commit
67dcb3a448
1 changed files with 10 additions and 1 deletions
|
@ -125,7 +125,16 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
action: "view_room",
|
action: "view_room",
|
||||||
room_id: roomId,
|
room_id: roomId,
|
||||||
});
|
});
|
||||||
} // TODO: Handle else
|
} else {
|
||||||
|
if (space) {
|
||||||
|
defaultDispatcher.dispatch({
|
||||||
|
action: "view_room",
|
||||||
|
room_id: space.roomId,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// TODO: Switch to first room in the RoomList
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// persist space selected
|
// persist space selected
|
||||||
if (space) {
|
if (space) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue