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

Commit

Permalink
Revert "Show room create button in RoomSublist if "UIComponent.roomCr…
Browse files Browse the repository at this point in the history
…eation" is enabled"

This reverts commit a332a0b.
  • Loading branch information
Mikhail Aheichyk committed Mar 17, 2023
1 parent a332a0b commit ac1ea8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 76 deletions.
4 changes: 1 addition & 3 deletions src/components/views/rooms/RoomSublist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ import SettingsStore from "../../../settings/SettingsStore";
import { SlidingSyncManager } from "../../../SlidingSyncManager";
import NotificationBadge from "./NotificationBadge";
import RoomTile from "./RoomTile";
import { shouldShowComponent } from "../../../customisations/helpers/UIComponents";
import { UIComponent } from "../../../settings/UIFeature";

const SHOW_N_BUTTON_HEIGHT = 28; // As defined by CSS
const RESIZE_HANDLE_HEIGHT = 4; // As defined by CSS
Expand Down Expand Up @@ -663,7 +661,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
);

let addRoomButton: JSX.Element | undefined;
if (this.props.AuxButtonComponent && shouldShowComponent(UIComponent.CreateRooms)) {
if (this.props.AuxButtonComponent) {
const AuxButtonComponent = this.props.AuxButtonComponent;
addRoomButton = <AuxButtonComponent tabIndex={tabIndex} />;
}
Expand Down
73 changes: 0 additions & 73 deletions test/components/views/rooms/RoomSublist-test.tsx

This file was deleted.

0 comments on commit ac1ea8e

Please sign in to comment.