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

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
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

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,