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; }