Go to /#/home if there is no saved room

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-03-26 08:16:39 +01:00
parent 7e425ce939
commit 65ef2b845e
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 3 additions and 1 deletions

View File

@ -132,7 +132,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
room_id: space.roomId,
});
} else {
// TODO: Switch to first room in the RoomList
defaultDispatcher.dispatch({
action: "view_home_page",
});
}
}