v3: added a chatbox
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -132,6 +132,7 @@ function notificationLink(n: Notification): string {
|
||||
return `/dumps/${d.dumpId}#comment-${d.contextId}`;
|
||||
}
|
||||
if (d.contextType === "dump") return `/dumps/${d.contextId}`;
|
||||
if (d.contextType === "chat") return `/?chat=open`;
|
||||
return `/playlists/${d.contextId}`;
|
||||
}
|
||||
}
|
||||
@@ -212,7 +213,11 @@ function notificationContent(n: Notification): React.ReactNode {
|
||||
case "user_mentioned": {
|
||||
const d = data as UserMentionedData;
|
||||
const where = d.contextTitle ||
|
||||
(d.contextType === "comment" ? t`a comment` : t`a post`);
|
||||
(d.contextType === "comment"
|
||||
? t`a comment`
|
||||
: d.contextType === "chat"
|
||||
? t`the chat`
|
||||
: t`a post`);
|
||||
return (
|
||||
<Trans>
|
||||
<strong>{d.mentionerUsername}</strong>
|
||||
|
||||
Reference in New Issue
Block a user