mirror of
https://github.com/suitenumerique/meet.git
synced 2026-10-08 14:32:32 +00:00
fixup! ✨(frontend) free the meeting layout while a screen share is popped out
This commit is contained in:
@@ -40,19 +40,15 @@ export const StageLayout = () => {
|
||||
|
||||
// The popped-out share stays mounted below, but out of the grid and the
|
||||
// carousel. It comes back with the other tracks when its window closes.
|
||||
const visibleTracks = detachedSid
|
||||
? tracks.filter(
|
||||
(track) =>
|
||||
!isTrackReference(track) || track.publication.trackSid !== detachedSid
|
||||
)
|
||||
: tracks
|
||||
|
||||
const detachedTrack = detachedSid
|
||||
? tracks.find(
|
||||
(track) =>
|
||||
isTrackReference(track) && track.publication.trackSid === detachedSid
|
||||
)
|
||||
: undefined
|
||||
const visibleTracks: TrackReferenceOrPlaceholder[] = []
|
||||
let detachedTrack: TrackReferenceOrPlaceholder | undefined
|
||||
for (const track of tracks) {
|
||||
if (isTrackReference(track) && track.publication.trackSid === detachedSid) {
|
||||
detachedTrack = track
|
||||
} else {
|
||||
visibleTracks.push(track)
|
||||
}
|
||||
}
|
||||
|
||||
const carouselTracks = visibleTracks.filter(
|
||||
(track) => !isEqualTrackRef(track, pinnedTrackRef)
|
||||
|
||||
Reference in New Issue
Block a user