From d1368f46220d36e6f76da24e0f08f78951f507de Mon Sep 17 00:00:00 2001 From: Robert Long Date: Fri, 21 Jan 2022 11:55:10 -0800 Subject: [PATCH] Add avatar when muted in lobby --- src/room/LobbyView.jsx | 19 +++++++++++++++++++ src/room/LobbyView.module.css | 17 +++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/room/LobbyView.jsx b/src/room/LobbyView.jsx index 714c209..a00580f 100644 --- a/src/room/LobbyView.jsx +++ b/src/room/LobbyView.jsx @@ -9,6 +9,9 @@ import { getRoomUrl } from "../matrix-utils"; import { OverflowMenu } from "./OverflowMenu"; import { UserMenuContainer } from "../UserMenuContainer"; import { Body, Link } from "../typography/Typography"; +import { Avatar } from "../Avatar"; +import { getAvatarUrl } from "../matrix-utils"; +import { useProfile } from "../profile/useProfile"; export function LobbyView({ client, @@ -27,6 +30,8 @@ export function LobbyView({ }) { const { stream } = useCallFeed(localCallFeed); const videoRef = useMediaStream(stream, true); + const { displayName, avatarUrl } = useProfile(client); + const avatarSize = 96; useEffect(() => { onInitLocalCallFeed(); @@ -58,6 +63,20 @@ export function LobbyView({ )} {state === GroupCallState.LocalCallFeedInitialized && ( <> + {localVideoMuted && ( +
+ +
+ )}