Skip to content

Commit 3625d4a

Browse files
committed
Allow sender identity to be passed in streamText method
1 parent a56c174 commit 3625d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/livekit-rtc/src/participant.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ export class LocalParticipant extends Participant {
257257
attributes?: Record<string, string>;
258258
destinationIdentities?: Array<string>;
259259
streamId?: string;
260+
senderIdentity?: string;
260261
}): Promise<TextStreamWriter> {
261-
const senderIdentity = this.identity;
262+
const senderIdentity = options?.senderIdentity ?? this.identity;
262263
const streamId = options?.streamId ?? crypto.randomUUID();
263264
const destinationIdentities = options?.destinationIdentities;
264265

0 commit comments

Comments
 (0)