You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Update src/components/views/voip/CallView/CallViewHeader.tsx
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -96,13 +96,13 @@ function getAvatarBasedOnRoomType(roomOrWidget: Room | IApp) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CallViewHeader({
|
export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
|
||||||
type,
|
type,
|
||||||
pipMode = false,
|
pipMode = false,
|
||||||
callRooms = [],
|
callRooms = [],
|
||||||
app,
|
app,
|
||||||
onPipMouseDown,
|
onPipMouseDown,
|
||||||
}: CallViewHeaderProps) {
|
}) {
|
||||||
const [callRoom, onHoldCallRoom] = callRooms;
|
const [callRoom, onHoldCallRoom] = callRooms;
|
||||||
const callTypeText = callTypeTranslationByType[type](app);
|
const callTypeText = callTypeTranslationByType[type](app);
|
||||||
const avatar = getAvatarBasedOnRoomType(callRoom ?? app);
|
const avatar = getAvatarBasedOnRoomType(callRoom ?? app);
|
||||||
|
|||||||
Reference in New Issue
Block a user