Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6729 from matrix-org/t3chguy/fix/18762
Browse files Browse the repository at this point in the history
Fix explore rooms button not working during space creation wizard
  • Loading branch information
t3chguy authored Sep 3, 2021
2 parents 2faa2e1 + aed8355 commit f7e491f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/structures/SpaceRoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,11 @@ export default class SpaceRoomView extends React.PureComponent<IProps, IState> {
};

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.member) {
Expand Down

0 comments on commit f7e491f

Please sign in to comment.