From 76e55a6c8e25b4598b62cce4ee0961eb7f4f977a Mon Sep 17 00:00:00 2001 From: Guilherme Leme Date: Wed, 29 Jul 2026 09:48:12 -0300 Subject: [PATCH] [add-property-loaded-chat-messages] Added sender role to the loaded chat messages hook (it remains static throughout the meeting) --- README.md | 2 +- src/data-consumption/domain/chat/loaded-chat-messages/types.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d2a821e9..a8802d38 100644 --- a/README.md +++ b/README.md @@ -576,7 +576,7 @@ So we have the `data`, which is different for each hook, that's why it's a gener if (chatMessages) { pluginLogger.info('Total messages:', chatMessages.length); chatMessages.forEach((msg) => { - pluginLogger.info(`Message from ${msg.senderName}: ${msg.message}`); + pluginLogger.info(`Message from ${msg.senderUserId} (${msg.senderRole}): ${msg.message}`); }); } }, [chatMessages]); diff --git a/src/data-consumption/domain/chat/loaded-chat-messages/types.ts b/src/data-consumption/domain/chat/loaded-chat-messages/types.ts index edbfdcce..38f8a4f5 100644 --- a/src/data-consumption/domain/chat/loaded-chat-messages/types.ts +++ b/src/data-consumption/domain/chat/loaded-chat-messages/types.ts @@ -5,6 +5,8 @@ export interface LoadedChatMessage { message: string; messageId: string; senderUserId: string; + // Static throughout the meeting; null for system messages + senderRole: string | null; messageMetadata: string; }