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

Fix explore rooms button not working during space creation wizard #6729

Merged
merged 1 commit into from
Sep 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/structures/SpaceRoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,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