Show highlight when replied to as well
parent
b17ca8bcc5
commit
81b2afec1c
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "chat",
|
||||
"version": "0.1.8",
|
||||
"version": "0.1.9",
|
||||
"main": "./src/index.tsx",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue