Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lastN) fix last N getting stuck on 1 #11425

Merged
merged 1 commit into from Apr 25, 2022
Merged

Conversation

saghul
Copy link
Member

@saghul saghul commented Apr 25, 2022

If last N goes down to 1 it will be stuck there since it's > 0 and will
be our lastNSelected. When limits are applied we'll take the minimum,
so it will end up being 1.

Once can end up in last N being 1 by several means, the more obvious one
by entering Picture-in-Picture mode on mobile.

Fix it by not using the previous last N value for the current
calculation, at all.

Fixes: #10257
Closes: #10491

If last N goes down to 1 it will be stuck there since it's > 0 and will
be our `lastNSelected`. When limits are applied we'll take the minimum,
so it will end up being 1.

Once can end up in last N being 1 by several means, the more obvious one
by entering Picture-in-Picture mode on mobile.

Fix it by not using the previous last N value for the current
calculation, at all.

Fixes: jitsi#10257
Closes: jitsi#10491
@saghul saghul merged commit 4d2bd93 into jitsi:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

last-n is set to 1 when entering PiP, isn't raised back when exiting PiP
2 participants