We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6368c04 commit 0c0ea75Copy full SHA for 0c0ea75
packages/core/src/components/chat.ts
@@ -16,6 +16,7 @@ export type { ChatMessage };
16
/** @public */
17
export interface ReceivedChatMessage extends ChatMessage {
18
from?: Participant;
19
+ attributes?: Record<string, string>;
20
}
21
22
export interface LegacyChatMessage extends ChatMessage {
@@ -169,6 +170,7 @@ export function setupChat(room: Room, options?: ChatOptions) {
169
170
const receivedChatMsg: ReceivedChatMessage = {
171
...chatMsg,
172
from: room.localParticipant,
173
+ attributes: options.attributes,
174
};
175
176
messageSubject.next(receivedChatMsg);
0 commit comments