Hide non-functional list options on Suggested sublist (#7410)

pull/21833/head
Michael Telatynski 2021-12-23 12:01:52 +00:00 committed by GitHub
parent 097c40b577
commit 5096455f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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
let contextMenu = null;
if (this.state.contextMenuPosition) {
const isAlphabetical = RoomListStore.instance.getTagSorting(this.props.tagId) === SortAlgorithm.Alphabetic;