Show highlight when replied to as well
parent
b17ca8bcc5
commit
81b2afec1c
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "chat",
|
"name": "chat",
|
||||||
"version": "0.1.8",
|
"version": "0.1.9",
|
||||||
"main": "./src/index.tsx",
|
"main": "./src/index.tsx",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -56,9 +56,10 @@ export function ChatMessage({
|
||||||
const quotedMessage = messageLookup[quotes];
|
const quotedMessage = messageLookup[quotes];
|
||||||
const content = censored ? text_censored : text_html;
|
const content = censored ? text_censored : text_html;
|
||||||
const isMention =
|
const isMention =
|
||||||
text_html.includes(`/id/${userId}`) &&
|
quotedMessage?.username === userUsername ||
|
||||||
userUsername &&
|
(text_html.includes(`/id/${userId}`) &&
|
||||||
username !== userUsername;
|
userUsername &&
|
||||||
|
username !== userUsername);
|
||||||
const timestamp = useMemo(
|
const timestamp = useMemo(
|
||||||
() => formatTimeAgo(time),
|
() => formatTimeAgo(time),
|
||||||
[time, timestampUpdates]
|
[time, timestampUpdates]
|
||||||
|
|
Loading…
Reference in New Issue