Fix missing string

This commit is contained in:
Dariusz Niemczyk 2021-08-06 17:47:59 +02:00
parent ebee78acc8
commit b73c73f07c
No known key found for this signature in database
GPG Key ID: 28DFE7164F497CB6

View File

@ -24,9 +24,9 @@ import dis from '../../../../dispatcher/dispatcher';
import classNames from 'classnames';
import AccessibleTooltipButton from '../../elements/AccessibleTooltipButton';
const callTypeTranslationByType: Record<CallType, () => string> = {
[CallType.Video]: () => _t("Video Call"),
[CallType.Voice]: () => _t("Voice Call"),
const callTypeTranslationByType: Record<CallType, string> = {
[CallType.Video]: _t("Video Call"),
[CallType.Voice]: _t("Voice Call"),
};
interface CallViewHeaderProps {
@ -103,6 +103,7 @@ export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
const callTypeText = callTypeTranslationByType[type];
const callRoomName = callRoom.name;
const { roomId } = callRoom;
if (!pipMode) {
return <div className="mx_CallViewHeader">
<CallTypeIcon type={type} />