Fix explore rooms button not working during space creation wizard

pull/21833/head
Michael Telatynski 2021-09-02 12:30:49 +01:00
parent 9be9e75c13
commit aed835554c
1 changed files with 5 additions and 0 deletions

View File

@ -807,6 +807,11 @@ export default class SpaceRoomView extends React.PureComponent<IProps, IState> {
}; };
private onAction = (payload: ActionPayload) => { private onAction = (payload: ActionPayload) => {
if (payload.action === "view_room" && payload.room_id === this.props.space.roomId) {
this.setState({ phase: Phase.Landing });
return;
}
if (payload.action !== Action.ViewUser && payload.action !== "view_3pid_invite") return; if (payload.action !== Action.ViewUser && payload.action !== "view_3pid_invite") return;
if (payload.action === Action.ViewUser && payload.member) { if (payload.action === Action.ViewUser && payload.member) {