From 85c0a95fdf19a1b431c6e7c255ac625b0eb9d205 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 4 Dec 2023 17:06:22 +0000 Subject: [PATCH] Hide react button in search results as it doesn't work properly (#11996) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/messages/MessageActionBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/messages/MessageActionBar.tsx b/src/components/views/messages/MessageActionBar.tsx index c183cdcfb8..60eee55c2d 100644 --- a/src/components/views/messages/MessageActionBar.tsx +++ b/src/components/views/messages/MessageActionBar.tsx @@ -466,7 +466,8 @@ export default class MessageActionBar extends React.PureComponent, ); } - 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,