From 87bd9cf026c8b0b5ad79fed184393019ac0462cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 28 Jun 2023 18:11:51 +0200 Subject: [PATCH 1/2] Remove avatar from header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/Header.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Header.tsx b/src/Header.tsx index c79953c..d9ad1e9 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -24,9 +24,7 @@ import styles from "./Header.module.css"; import { useModalTriggerState } from "./Modal"; import { Button } from "./button"; import { ReactComponent as Logo } from "./icons/Logo.svg"; -import { ReactComponent as VideoIcon } from "./icons/Video.svg"; import { Subtitle } from "./typography/Typography"; -import { Avatar, Size } from "./Avatar"; import { IncompatibleVersionModal } from "./IncompatibleVersionModal"; interface HeaderProps extends HTMLAttributes { @@ -122,15 +120,6 @@ interface RoomHeaderInfo { export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) { return ( <> -
- - -
{roomName} From 8cafe0f25d8d4a459d8e635d073e53ffce56e2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 29 Jun 2023 08:03:30 +0200 Subject: [PATCH 2/2] Remove `roomAvatarUrl` from `MatrixInfo` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/Header.tsx | 3 +-- src/room/GroupCallView.tsx | 3 --- src/room/InCallView.tsx | 5 +---- src/room/LobbyView.tsx | 5 +---- src/room/VideoPreview.tsx | 1 - 5 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/Header.tsx b/src/Header.tsx index d9ad1e9..8974bcc 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -114,10 +114,9 @@ export function HeaderLogo({ className }: HeaderLogoProps) { interface RoomHeaderInfo { roomName: string; - avatarUrl: string | null; } -export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) { +export function RoomHeaderInfo({ roomName }: RoomHeaderInfo) { return ( <> diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 471bfa4..3872ec2 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -35,7 +35,6 @@ import { PosthogAnalytics } from "../analytics/PosthogAnalytics"; import { useProfile } from "../profile/useProfile"; import { UserChoices } from "../livekit/useLiveKit"; import { findDeviceByName } from "../media-utils"; -import { useRoomAvatar } from "./useRoomAvatar"; declare global { interface Window { @@ -82,14 +81,12 @@ export function GroupCallView({ }, [groupCall]); const { displayName, avatarUrl } = useProfile(client); - const roomAvatarUrl = useRoomAvatar(groupCall.room); const matrixInfo: MatrixInfo = { displayName, avatarUrl, roomName: groupCall.room.name, roomIdOrAlias, - roomAvatarUrl, }; useEffect(() => { diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 7125720..617c66a 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -389,10 +389,7 @@ export function InCallView({ {!hideHeader && maximisedParticipant === null && (
- + - + diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx index ed31f6e..6c7cbf4 100644 --- a/src/room/VideoPreview.tsx +++ b/src/room/VideoPreview.tsx @@ -35,7 +35,6 @@ export type MatrixInfo = { avatarUrl: string; roomName: string; roomIdOrAlias: string; - roomAvatarUrl: string | null; }; interface Props {