Sort tiles by presenter

This commit is contained in:
Robert Long 2021-12-21 15:56:48 -08:00
parent fe724783ff
commit ffc5208865

View File

@ -402,7 +402,7 @@ function InRoomView({
items.push({
id: callFeed.stream.id,
callFeed,
isActiveSpeaker:
focused:
screenshareFeeds.length === 0
? callFeed.userId === activeSpeaker
: false,
@ -410,10 +410,18 @@ function InRoomView({
}
for (const callFeed of screenshareFeeds) {
const userMediaItem = items.find(
(item) => item.callFeed.userId === callFeed.userId
);
if (userMediaItem) {
userMediaItem.presenter = true;
}
items.push({
id: callFeed.stream.id,
callFeed,
isActiveSpeaker: true,
focused: true,
});
}