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