From 900c55e68b587c8f118f125edc6c6a8df17368e6 Mon Sep 17 00:00:00 2001 From: Abron Date: Tue, 4 Feb 2025 08:32:41 +0330 Subject: [PATCH] remove dotted menu --- src/components/common/messaging/Message.tsx | 31 ++++++++++--------- .../common/messaging/bars/PinnedMessage.tsx | 1 + 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/components/common/messaging/Message.tsx b/src/components/common/messaging/Message.tsx index ac1467d3..497db9e2 100644 --- a/src/components/common/messaging/Message.tsx +++ b/src/components/common/messaging/Message.tsx @@ -51,6 +51,7 @@ const Message = observer( head: preferHead, queued, hideReply, + type_msg, }: Props) => { const client = message.client; const user = message.author; @@ -61,11 +62,11 @@ const Message = observer( const userContext = attachContext ? useTriggerEvents("Menu", { - user: message.author_id, - contextualChannel: message.channel_id, - contextualMessage: message._id, - // eslint-disable-next-line - }) + user: message.author_id, + contextualChannel: message.channel_id, + contextualMessage: message._id, + // eslint-disable-next-line + }) : undefined; const openProfile = () => @@ -110,11 +111,11 @@ const Message = observer( hideReply ? false : (head && - !( - message.reply_ids && - message.reply_ids.length > 0 - )) ?? - false + !( + message.reply_ids && + message.reply_ids.length > 0 + )) ?? + false } contrast={contrast} sending={typeof queued !== "undefined"} @@ -126,10 +127,10 @@ const Message = observer( failed={typeof queued?.error !== "undefined"} {...(attachContext ? useTriggerEvents("Menu", { - message, - contextualChannel: message.channel_id, - queued, - }) + message, + contextualChannel: message.channel_id, + queued, + }) : undefined)} onMouseEnter={() => setAnimate(true)} onMouseLeave={() => setAnimate(false)}> @@ -195,7 +196,7 @@ const Message = observer( ))} {(mouseHovering || reactionsOpen) && - !replacement && + !replacement && !type_msg && !isTouchscreenDevice && ( )