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

Commit 9181e3e

Browse files
authored
Merge pull request #5338 from matrix-org/t3chguy/fix/15166
Hide filtering microcopy when left panel is minimized
2 parents 350c536 + 47744a4 commit 9181e3e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/components/structures/LeftPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ export default class LeftPanel extends React.Component<IProps, IState> {
388388
const roomList = <RoomList
389389
onKeyDown={this.onKeyDown}
390390
resizeNotifier={null}
391-
collapsed={false}
392391
onFocus={this.onFocus}
393392
onBlur={this.onBlur}
394393
isMinimized={this.props.isMinimized}

src/components/views/rooms/RoomList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ interface IProps {
5353
onBlur: (ev: React.FocusEvent) => void;
5454
onResize: () => void;
5555
resizeNotifier: ResizeNotifier;
56-
collapsed: boolean;
5756
isMinimized: boolean;
5857
}
5958

@@ -366,7 +365,7 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
366365

367366
public render() {
368367
let explorePrompt: JSX.Element;
369-
if (RoomListStore.instance.getFirstNameFilterCondition()) {
368+
if (!this.props.isMinimized && RoomListStore.instance.getFirstNameFilterCondition()) {
370369
explorePrompt = <div className="mx_RoomList_explorePrompt">
371370
<div>{_t("Can't see what you’re looking for?")}</div>
372371
<AccessibleButton kind="link" onClick={this.onExplore}>

0 commit comments

Comments
 (0)