mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Merge pull request #631 from robintown/fix-fullscreen
Fix fullscreen buttons fullscreening the wrong feed
This commit is contained in:
commit
af4c1280f5
@ -224,11 +224,12 @@ export function InCallView({
|
||||
// window is too small to show everyone
|
||||
const maximisedParticipant = useMemo(
|
||||
() =>
|
||||
fullscreenParticipant ?? (bounds.height <= 400 && bounds.width <= 400)
|
||||
fullscreenParticipant ??
|
||||
(bounds.height <= 400 && bounds.width <= 400
|
||||
? items.find((item) => item.focused) ??
|
||||
items.find((item) => item.callFeed) ??
|
||||
null
|
||||
: null,
|
||||
: null),
|
||||
[fullscreenParticipant, bounds, items]
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user