Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(subtitles): resolve on-stage speaker name from the store
damencho7c0aa455413e
diff --git a/react/features/subtitles/components/AbstractCaptions.tsx b/react/features/subtitles/components/AbstractCaptions.tsxindex 7fa9d2121e..cbb30befa6 100644--- a/react/features/subtitles/components/AbstractCaptions.tsx+++ b/react/features/subtitles/components/AbstractCaptions.tsx@@ -1,6 +1,7 @@import React, { Component, ReactElement } from 'react';import { IReduxState } from '../../app/types';+import { getParticipantDisplayName } from '../../base/participants/functions';/**@@ -100,7 +101,9 @@ function _constructTranscripts(state: IReduxState): Map<string, string> {for (const [ id, transcriptMessage ] of _transcriptMessages) {if (transcriptMessage) {- let text = `${transcriptMessage.participant.name}: `;+ // Resolve the speaker name from the store (like the CC panel does) rather than relying on+ // the name sent by the transcriber, which may be missing.+ let text = `${getParticipantDisplayName(state, transcriptMessage.participant.id ?? '')}: `;if (transcriptMessage.final) {text += transcriptMessage.final;