Channel List: Hide search filter (#5423)
This commit is contained in:
parent
6c2b1a94d5
commit
4405c21ba1
@ -452,24 +452,26 @@ 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}>
|
||||||
<Link className="Link menuTrigger dropDownLink" onClick={handleClickContext}>
|
{!isChannelList && (
|
||||||
{lang('SearchContextCaption', {
|
<Link className="Link menuTrigger dropDownLink" onClick={handleClickContext}>
|
||||||
type: getSearchContextCaption(searchContext),
|
{lang('SearchContextCaption', {
|
||||||
}, {
|
type: getSearchContextCaption(searchContext),
|
||||||
withNodes: true,
|
}, {
|
||||||
})}
|
withNodes: true,
|
||||||
|
})}
|
||||||
|
|
||||||
<Transition
|
<Transition
|
||||||
name="fade"
|
name="fade"
|
||||||
shouldCleanup
|
shouldCleanup
|
||||||
activeKey={Number(isMessagesFetching)}
|
activeKey={Number(isMessagesFetching)}
|
||||||
className="iconContainer"
|
className="iconContainer"
|
||||||
slideClassName="iconContainerSlide"
|
slideClassName="iconContainerSlide"
|
||||||
>
|
>
|
||||||
{isMessagesFetching && (<Loading />)}
|
{isMessagesFetching && (<Loading />)}
|
||||||
{!isMessagesFetching && <Icon name="down" />}
|
{!isMessagesFetching && <Icon name="down" />}
|
||||||
</Transition>
|
</Transition>
|
||||||
</Link>
|
</Link>
|
||||||
|
)}
|
||||||
{oldLang('SearchMessages')}
|
{oldLang('SearchMessages')}
|
||||||
</h3>
|
</h3>
|
||||||
{actualFoundIds.map(renderFoundMessage)}
|
{actualFoundIds.map(renderFoundMessage)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user