From 81b2afec1cc965c482b39be412bb5b5ead2f629a Mon Sep 17 00:00:00 2001 From: Outrun Colors Date: Sun, 25 Sep 2022 19:01:08 -0500 Subject: [PATCH] Show highlight when replied to as well --- chat/package.json | 2 +- chat/src/features/chat/ChatMessage.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/chat/package.json b/chat/package.json index 255b95924..f6297a36e 100644 --- a/chat/package.json +++ b/chat/package.json @@ -1,6 +1,6 @@ { "name": "chat", - "version": "0.1.8", + "version": "0.1.9", "main": "./src/index.tsx", "license": "MIT", "dependencies": { diff --git a/chat/src/features/chat/ChatMessage.tsx b/chat/src/features/chat/ChatMessage.tsx index caeafba21..334fecc44 100644 --- a/chat/src/features/chat/ChatMessage.tsx +++ b/chat/src/features/chat/ChatMessage.tsx @@ -56,9 +56,10 @@ export function ChatMessage({ const quotedMessage = messageLookup[quotes]; const content = censored ? text_censored : text_html; const isMention = - text_html.includes(`/id/${userId}`) && - userUsername && - username !== userUsername; + quotedMessage?.username === userUsername || + (text_html.includes(`/id/${userId}`) && + userUsername && + username !== userUsername); const timestamp = useMemo( () => formatTimeAgo(time), [time, timestampUpdates]