diff --git a/src/components/ChatPanel.tsx b/src/components/ChatPanel.tsx index 0fcd093..4acc1c2 100644 --- a/src/components/ChatPanel.tsx +++ b/src/components/ChatPanel.tsx @@ -279,7 +279,11 @@ export default function ChatPanel({ chatId, projectSlug }: Props) {
{AUTHOR_ICON[msg.author_type] || "πŸ‘€"} - {msg.author_type === "system" ? "System" : (msg.author?.name || msg.author?.slug || "Unknown")} + + {msg.author_type === "system" + ? (msg.actor ? `БистСма (${msg.actor.name})` : "БистСма") + : (msg.author?.name || msg.author?.slug || "Unknown")} + Β· {new Date(msg.created_at).toLocaleString("ru-RU", { hour: "2-digit", minute: "2-digit" })}
diff --git a/src/lib/api.ts b/src/lib/api.ts index c225e73..e27647a 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -147,7 +147,8 @@ export interface Message { author: MemberBrief | null; content: string; thinking: string | null; - mentions: string[]; + mentions: MemberBrief[]; + actor: MemberBrief | null; voice_url: string | null; attachments: Attachment[]; created_at: string;