Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove space-specific right panel store handling #28538

Merged
merged 6 commits into from
Dec 2, 2024
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Nov 25, 2024

This is no longer needed as the right panel always corresponds to the currently viewed room/space only.

Fixes #20721

This is no longer needed as the right panel always corresponds to the currently viewed room/space only.

Signed-off-by: Michael Telatynski <[email protected]>
@t3chguy t3chguy added the T-Task Tasks for the team like planning label Nov 25, 2024
@t3chguy t3chguy self-assigned this Nov 25, 2024
Signed-off-by: Michael Telatynski <[email protected]>
Comment on lines 111 to 118
// redraw the badge on the membership list
if (this.state.phase === RightPanelPhases.RoomMemberList) {
if (this.state.phase === RightPanelPhases.MemberList) {
this.delayedUpdate();
} else if (
this.state.phase === RightPanelPhases.RoomMemberInfo &&
this.state.phase === RightPanelPhases.MemberInfo &&
member.userId === this.state.cardState?.member?.userId
) {
// refresh the member info (e.g. new power level)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part isn't really testable, relies on forceUpdate and is all sorts of hellish

Comment on lines +1823 to 1825
if (RightPanelStore.instance.previousCard.phase === RightPanelPhases.MemberList) {
PosthogTrackers.trackInteraction("WebRightPanelRoomUserInfoBackButton", ev);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't sanely testable

Signed-off-by: Michael Telatynski <[email protected]>
@t3chguy t3chguy merged commit 00aadf1 into develop Dec 2, 2024
31 of 32 checks passed
@t3chguy t3chguy deleted the t3chguy/fix/20721 branch December 2, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove spaceId from IRightPanelCardState[Stored]
2 participants