From 3bd7fa036b5b9a82b03123b2c07e91082b910c96 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 4 Dec 2023 16:43:46 +0000 Subject: [PATCH] Hide react button in search results as it doesn't work properly 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 c183cdcfb82..60eee55c2d0 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,