From f7fa9facd78760b21a5021df7219eab39d5e9208 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 13 Sep 2023 14:58:01 +0530 Subject: [PATCH] Let code in RoomView handle all cases --- src/components/structures/SpaceRoomView.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/components/structures/SpaceRoomView.tsx b/src/components/structures/SpaceRoomView.tsx index 5ae9bec82b..439782cb7e 100644 --- a/src/components/structures/SpaceRoomView.tsx +++ b/src/components/structures/SpaceRoomView.tsx @@ -668,20 +668,6 @@ export default class SpaceRoomView extends React.PureComponent { this.setState({ phase: Phase.Landing }); return; } - - /** - * The rest of the `ViewUser` and `view_3pid_invite` exists in the `` - * 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 => {