Fixes here and there

This commit is contained in:
2025-10-13 11:43:27 +02:00
parent 91dc53fafe
commit 388d764a19
+6 -3
View File
@@ -70,14 +70,17 @@ export default function AppSidebar({
() => {},
setMessages,
(m) => {
if (m.from !== chatWith)
toast(`New message from ${m.from}`, {
if (m.from !== chatWith && m.from !== user.id)
toast(
`New message from ${userList[m.from]?.display_name || m.from}`,
{
description: m.contents.slice(0, 80),
action: {
label: "View",
onClick: () => router.push(`/chat/${m.from}`),
},
});
}
);
if (onNewMessage) onNewMessage(m);
}