From 054f50bcd4c968cc2dd8be3ccfbf873e076893e3 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:08:14 -0600 Subject: [PATCH] Enable filter by unread on production Co-authored-by: yash-signal --- ts/components/LeftPaneSearchInput.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ts/components/LeftPaneSearchInput.tsx b/ts/components/LeftPaneSearchInput.tsx index c97c29c90..e361f2bb1 100644 --- a/ts/components/LeftPaneSearchInput.tsx +++ b/ts/components/LeftPaneSearchInput.tsx @@ -1,7 +1,7 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -import React, { useEffect, useMemo, useRef } from 'react'; +import React, { useEffect, useRef } from 'react'; import classNames from 'classnames'; import type { ConversationType, @@ -13,7 +13,6 @@ import { SearchInput } from './SearchInput'; import { usePrevious } from '../hooks/usePrevious'; import { Tooltip, TooltipPlacement } from './Tooltip'; import { Theme } from '../util/theme'; -import { isProduction } from '../util/version'; type BasePropsType = { clearConversationSearch: () => void; @@ -124,11 +123,6 @@ export function LeftPaneSearchInput({ label = i18n('icu:search'); } - const eligibleToShowFilterByUnread = useMemo( - () => window.getVersion && !isProduction(window.getVersion()), - [] - ); - return ( <> )} - {filterButtonEnabled && eligibleToShowFilterByUnread && ( + {filterButtonEnabled && (