Show highlight when replied to as well

remotes/1693176582716663532/tmp_refs/heads/watchparty
Outrun Colors 2022-09-25 19:01:08 -05:00
parent b17ca8bcc5
commit 81b2afec1c
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "chat",
"version": "0.1.8",
"version": "0.1.9",
"main": "./src/index.tsx",
"license": "MIT",
"dependencies": {

View File

@ -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]