mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Sort tiles by presenter
This commit is contained in:
parent
fe724783ff
commit
ffc5208865
12
src/Room.jsx
12
src/Room.jsx
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user