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

Commit

Permalink
Let code in RoomView handle all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MidhunSureshR committed Sep 13, 2023
1 parent 919580f commit f7fa9fa
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/components/structures/SpaceRoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -668,20 +668,6 @@ export default class SpaceRoomView extends React.PureComponent<IProps, IState> {
this.setState({ phase: Phase.Landing });
return;
}

/**
* The rest of the `ViewUser` and `view_3pid_invite` exists in the `<RoomView />`
* component. This deals specifically with showing the space members list
*/
if (
(payload.action === Action.ViewUser && !payload.member) ||
(payload.action === "view_3pid_invite" && payload.event === null)
) {
RightPanelStore.instance.setCard({
phase: RightPanelPhases.SpaceMemberList,
state: { spaceId: this.props.space.roomId },
});
}
};

private goToFirstRoom = async (): Promise<void> => {
Expand Down

0 comments on commit f7fa9fa

Please sign in to comment.