Q14: every human sender shows their own kind and role, board included

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 04:08:21 -04:00
1 parent 31bf0a1497
commit 592ce69219
4 files changed
+44 -12

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ const MESSAGE_SELECT = `
coalesce(a.role, e.role) as sender_role
from chat_messages m
left join agents a on a.id = m.sender_id and m.sender_type = 'agent'
left join employees e on e.id = m.sender_id and m.sender_type = 'employee'`;
left join employees e on e.id = m.sender_id and m.sender_type in ('employee', 'board')`;
interface ThreadMessageRow {
id: string;