From 55ad4be5807b5ece530025eb90a3ad0ce622124f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 24 Dec 2022 01:22:25 +0800 Subject: [PATCH] Only show reply badge if not inside mentions --- src/components/status.jsx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 231b3489..269afb9b 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -273,25 +273,24 @@ function Status({ ))} {inReplyToAccountId && !withinContext && size !== 's' && ( -
+ <> {inReplyToAccountId === status.account.id ? ( - <> +
Thread - +
) : ( - !!inReplyToAccount && ( - <> + !!inReplyToAccount && + !mentions.find((mention) => { + return mention.id === inReplyToAccountId; + }) && ( +
{' '} - +
) )} -
+ )}