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

Do not show "Forget room" button in Room View header for guest users #10898

Merged
merged 3 commits into from
Jul 25, 2023
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
inRoom={myMembership === "join"}
onSearchClick={onSearchClick}
onInviteClick={onInviteClick}
onForgetClick={myMembership === "leave" ? onForgetClick : null}
onForgetClick={myMembership === "leave" && !this.context.client.isGuest() ? onForgetClick : null}
e2eStatus={this.state.e2eStatus}
onAppsClick={this.state.hasPinnedWidgets ? onAppsClick : null}
appsShown={this.state.showApps}
Expand Down