Skip to content

Commit

Permalink
Merge pull request #1407 from brave/main
Browse files Browse the repository at this point in the history
add default transcript (#1403)
  • Loading branch information
mrose17 authored Apr 12, 2024
2 parents 6fc331d + 961b51a commit 7e5d51e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/InCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ interface Props {
jitsiContext: JitsiContext;
}

const DEFAULT_TRANSCRIPT = `Transcripts are not enabled for this call. You can ask the host to enable transcripts by going to "More options" and selecting "Start recording".`;

export const InCall = ({
roomName,
jwt,
Expand All @@ -48,7 +50,7 @@ export const InCall = ({
}: Props) => {
const divRef = useRef(null);
const [jitsiMeet, setJitsiMeet] = useState<IJitsiMeetApi>();
const [transcript, setTranscript] = useState<string>("");
const [transcript, setTranscript] = useState<string>(DEFAULT_TRANSCRIPT);
const transcriptManager = useRef(new TranscriptManager(setTranscript));

useEffect(() => {
Expand Down

0 comments on commit 7e5d51e

Please sign in to comment.