From b73c73f07c6fa6aba6c5a4ab9e07770f3ae9489b Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Fri, 6 Aug 2021 17:47:59 +0200 Subject: [PATCH] Fix missing string --- src/components/views/voip/CallView/CallViewHeader.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/views/voip/CallView/CallViewHeader.tsx b/src/components/views/voip/CallView/CallViewHeader.tsx index 85e47adb78..acc577c5d9 100644 --- a/src/components/views/voip/CallView/CallViewHeader.tsx +++ b/src/components/views/voip/CallView/CallViewHeader.tsx @@ -24,9 +24,9 @@ import dis from '../../../../dispatcher/dispatcher'; import classNames from 'classnames'; import AccessibleTooltipButton from '../../elements/AccessibleTooltipButton'; -const callTypeTranslationByType: Record string> = { - [CallType.Video]: () => _t("Video Call"), - [CallType.Voice]: () => _t("Voice Call"), +const callTypeTranslationByType: Record = { + [CallType.Video]: _t("Video Call"), + [CallType.Voice]: _t("Voice Call"), }; interface CallViewHeaderProps { @@ -103,6 +103,7 @@ export const CallViewHeader: React.FC = ({ const callTypeText = callTypeTranslationByType[type]; const callRoomName = callRoom.name; const { roomId } = callRoom; + if (!pipMode) { return