Channel List: Hide search filter (#5423)

This commit is contained in:
Alexander Zinchuk 2025-01-21 18:19:32 +01:00
parent 6c2b1a94d5
commit 4405c21ba1

View File

@ -452,6 +452,7 @@ const ChatResults: FC<OwnProps & StateProps> = ({
{shouldRenderMessagesSection && ( {shouldRenderMessagesSection && (
<div className="search-section"> <div className="search-section">
<h3 className="section-heading" dir={oldLang.isRtl ? 'auto' : undefined}> <h3 className="section-heading" dir={oldLang.isRtl ? 'auto' : undefined}>
{!isChannelList && (
<Link className="Link menuTrigger dropDownLink" onClick={handleClickContext}> <Link className="Link menuTrigger dropDownLink" onClick={handleClickContext}>
{lang('SearchContextCaption', { {lang('SearchContextCaption', {
type: getSearchContextCaption(searchContext), type: getSearchContextCaption(searchContext),
@ -470,6 +471,7 @@ const ChatResults: FC<OwnProps & StateProps> = ({
{!isMessagesFetching && <Icon name="down" />} {!isMessagesFetching && <Icon name="down" />}
</Transition> </Transition>
</Link> </Link>
)}
{oldLang('SearchMessages')} {oldLang('SearchMessages')}
</h3> </h3>
{actualFoundIds.map(renderFoundMessage)} {actualFoundIds.map(renderFoundMessage)}