fix: system messages show actor name instead of 'Система (Name)'

This commit is contained in:
Markov 2026-03-14 09:56:47 +01:00
parent b41bb8ab1c
commit 7358b05b11

View File

@ -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>