Revert removal of header search icon
Rendering is still disabled.
This commit is contained in:
parent
840f280a37
commit
06142c880a
|
@ -255,6 +255,19 @@ export class ConversationHeader extends React.Component<Props> {
|
|||
);
|
||||
}
|
||||
|
||||
public renderSearch() {
|
||||
return (
|
||||
<div className="search-icon">
|
||||
<SessionIconButton
|
||||
iconType={SessionIconType.Search}
|
||||
iconSize={SessionIconSize.Large}
|
||||
iconPadded={true}
|
||||
onClick={this.highlightMessageSearch}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
public renderOptions(triggerId: string) {
|
||||
const { showBackButton } = this.props;
|
||||
|
||||
|
@ -385,6 +398,12 @@ export class ConversationHeader extends React.Component<Props> {
|
|||
</div>
|
||||
</div>
|
||||
{this.renderExpirationLength()}
|
||||
|
||||
{!this.props.isRss && (
|
||||
<>
|
||||
{this.renderAvatar()}
|
||||
</>
|
||||
)}
|
||||
|
||||
{!this.props.isRss && this.renderAvatar()}
|
||||
|
||||
|
@ -400,6 +419,12 @@ export class ConversationHeader extends React.Component<Props> {
|
|||
}
|
||||
}
|
||||
|
||||
public highlightMessageSearch() {
|
||||
// This is a temporary fix. In future we want to search
|
||||
// messages in the current conversation
|
||||
$('.session-search-input input').focus();
|
||||
}
|
||||
|
||||
private renderPublicMenuItems() {
|
||||
const {
|
||||
i18n,
|
||||
|
|
Loading…
Reference in New Issue