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

Hide non-functional list options on Suggested sublist #7410

Merged
merged 2 commits into from
Dec 23, 2021
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: 2 additions & 0 deletions src/components/views/rooms/RoomSublist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ export default class RoomSublist extends React.Component<IProps, IState> {
}

private renderMenu(): React.ReactElement {
if (this.props.tagId === DefaultTagID.Suggested) return null; // not sortable
t3chguy marked this conversation as resolved.
Show resolved Hide resolved

let contextMenu = null;
if (this.state.contextMenuPosition) {
const isAlphabetical = RoomListStore.instance.getTagSorting(this.props.tagId) === SortAlgorithm.Alphabetic;
Expand Down