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

Commit f7fa9fa

Browse files
committed
Let code in RoomView handle all cases
1 parent 919580f commit f7fa9fa

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/components/structures/SpaceRoomView.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -668,20 +668,6 @@ export default class SpaceRoomView extends React.PureComponent<IProps, IState> {
668668
this.setState({ phase: Phase.Landing });
669669
return;
670670
}
671-
672-
/**
673-
* The rest of the `ViewUser` and `view_3pid_invite` exists in the `<RoomView />`
674-
* component. This deals specifically with showing the space members list
675-
*/
676-
if (
677-
(payload.action === Action.ViewUser && !payload.member) ||
678-
(payload.action === "view_3pid_invite" && payload.event === null)
679-
) {
680-
RightPanelStore.instance.setCard({
681-
phase: RightPanelPhases.SpaceMemberList,
682-
state: { spaceId: this.props.space.roomId },
683-
});
684-
}
685671
};
686672

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

0 commit comments

Comments
 (0)