fix: system messages show 'System' instead of actor name
This commit is contained in:
parent
8f2c999245
commit
b150f25949
@ -221,7 +221,7 @@ export default function ChatPanel({ chatId, projectSlug }: Props) {
|
|||||||
<div key={msg.id} className="text-sm" style={bgStyle}>
|
<div key={msg.id} className="text-sm" style={bgStyle}>
|
||||||
<div className="flex items-center gap-1 text-xs text-[var(--muted)] mb-0.5">
|
<div className="flex items-center gap-1 text-xs text-[var(--muted)] mb-0.5">
|
||||||
<span>{AUTHOR_ICON[msg.author_type] || "👤"}</span>
|
<span>{AUTHOR_ICON[msg.author_type] || "👤"}</span>
|
||||||
<span className="font-medium">{msg.author?.name || msg.author?.slug || "Unknown"}</span>
|
<span className="font-medium">{msg.author_type === "system" ? "System" : (msg.author?.name || msg.author?.slug || "Unknown")}</span>
|
||||||
<span>·</span>
|
<span>·</span>
|
||||||
<span>{new Date(msg.created_at).toLocaleString("ru-RU", { hour: "2-digit", minute: "2-digit" })}</span>
|
<span>{new Date(msg.created_at).toLocaleString("ru-RU", { hour: "2-digit", minute: "2-digit" })}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user