Show the room avatar rather than the user avatar in the header

It's supposed to be the room avatar; this was a regression introduced during the LiveKit hack week.
This commit is contained in:
Robin Townsend
2023-06-23 16:18:51 -04:00
parent f08facbff3
commit 25eb56418d
6 changed files with 34 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ export function HeaderLogo({ className }: HeaderLogoProps) {
interface RoomHeaderInfo {
roomName: string;
avatarUrl: string;
avatarUrl: string | null;
}
export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) {
@@ -125,7 +125,7 @@ export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) {
<div className={styles.roomAvatar}>
<Avatar
size={Size.MD}
src={avatarUrl}
src={avatarUrl ?? undefined}
bgKey={roomName}
fallback={roomName.slice(0, 1).toUpperCase()}
/>