Hide react button in search results as it doesn't work properly (#11996)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28217/head
Michael Telatynski 2023-12-04 17:06:22 +00:00 committed by GitHub
parent 09fddc0676
commit 85c0a95fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -466,7 +466,8 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
</RovingAccessibleTooltipButton>,
);
}
if (this.context.canReact) {
// We hide the react button in search results as we don't show reactions in results
if (this.context.canReact && !this.context.search) {
toolbarOpts.splice(
0,
0,