diff --git a/src/components/views/voip/CallView/CallViewHeader.tsx b/src/components/views/voip/CallView/CallViewHeader.tsx index d9a49e50102f..26b38299672d 100644 --- a/src/components/views/voip/CallView/CallViewHeader.tsx +++ b/src/components/views/voip/CallView/CallViewHeader.tsx @@ -36,13 +36,6 @@ interface CallViewHeaderProps { onPipMouseDown: (event: React.MouseEvent) => void; } -const onRoomAvatarClick = (roomId: string) => { - dis.dispatch({ - action: 'view_room', - room_id: roomId, - }); -}; - const onFullscreenClick = () => { dis.dispatch({ action: 'video_fullscreen', @@ -76,12 +69,10 @@ const CallViewHeaderControls: React.FC = ({ pipMode = false, }; const SecondaryCallInfo: React.FC<{ callRoom: Room }> = ({ callRoom }) => { return - onRoomAvatarClick(callRoom.roomId)}> - - - { _t("%(name)s on hold", { name: callRoom.name }) } - - + + + { _t("%(name)s on hold", { name: callRoom.name }) } + ; }; @@ -117,9 +108,7 @@ const CallViewHeader: React.FC = ({ className="mx_CallViewHeader" onMouseDown={onPipMouseDown} > - onRoomAvatarClick(roomId)}> - - +
{ callRoomName }