Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Long
9900d661be Fix avatar background when bgKey undefined 2022-03-01 11:37:45 -08:00
Robert Long
369b59a203 Fix ordering in 1-1 calls 2022-02-25 16:26:21 -08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ export function Avatar({
}) {
const backgroundColor = useMemo(() => {
const index = hashStringToArrIndex(
bgKey || fallback || src,
bgKey || fallback || src || "",
backgroundColors.length
);
return backgroundColors[index];

View File

@@ -65,6 +65,7 @@ export function InCallView({
screenshareFeeds.length === 0 && layout === "spotlight"
? callFeed.userId === activeSpeaker
: false,
isLocal: callFeed.isLocal(),
});
}
@@ -81,6 +82,7 @@ export function InCallView({
id: callFeed.stream.id,
callFeed,
focused: true,
isLocal: callFeed.isLocal(),
});
}