Enable filter by unread on production

This commit is contained in:
automated-signal 2024-12-06 10:54:59 -06:00 committed by GitHub
parent 4f412be9ef
commit ed8071650e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 (
<>
<SearchInput
@ -202,7 +196,7 @@ export function LeftPaneSearchInput({
</div>
)}
</SearchInput>
{filterButtonEnabled && eligibleToShowFilterByUnread && (
{filterButtonEnabled && (
<Tooltip
direction={TooltipPlacement.Bottom}
content={i18n('icu:filterByUnreadButtonLabel')}