From 35d12171b194a9285af10b0c9e87c94cbfa99dcb Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 19 Oct 2020 12:54:53 +0100 Subject: [PATCH 1/2] Remove unused prop for clarity Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/LeftPanel.tsx | 1 - src/components/views/rooms/RoomList.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/components/structures/LeftPanel.tsx b/src/components/structures/LeftPanel.tsx index 262d12a700..00653995c9 100644 --- a/src/components/structures/LeftPanel.tsx +++ b/src/components/structures/LeftPanel.tsx @@ -388,7 +388,6 @@ export default class LeftPanel extends React.Component { const roomList = void; onResize: () => void; resizeNotifier: ResizeNotifier; - collapsed: boolean; isMinimized: boolean; } From 47744a4344d1f2582a23f0b5ebe28b790e4d1c90 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 19 Oct 2020 12:55:01 +0100 Subject: [PATCH 2/2] Hide filtering microcopy when left panel is minimized Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/RoomList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 33164837c1..3a4d27e666 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -365,7 +365,7 @@ export default class RoomList extends React.PureComponent { public render() { let explorePrompt: JSX.Element; - if (RoomListStore.instance.getFirstNameFilterCondition()) { + if (!this.props.isMinimized && RoomListStore.instance.getFirstNameFilterCondition()) { explorePrompt =
{_t("Can't see what you’re looking for?")}