fix: system messages show actor name instead of 'Система (Name)'
This commit is contained in:
parent
b41bb8ab1c
commit
7358b05b11
@ -306,7 +306,7 @@ export default function ChatPanel({ chatId, projectId }: Props) {
|
|||||||
<span>{AUTHOR_ICON[msg.author_type] || "👤"}</span>
|
<span>{AUTHOR_ICON[msg.author_type] || "👤"}</span>
|
||||||
<span className="font-medium">
|
<span className="font-medium">
|
||||||
{msg.author_type === "system"
|
{msg.author_type === "system"
|
||||||
? (msg.actor ? `Система (${msg.actor.name})` : "Система")
|
? (msg.actor?.name || "Система")
|
||||||
: (msg.author?.name || msg.author?.slug || "Unknown")}
|
: (msg.author?.name || msg.author?.slug || "Unknown")}
|
||||||
</span>
|
</span>
|
||||||
<span>·</span>
|
<span>·</span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user