Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Feb 9, 2021

Regression introduced in #4958

If the number of pages was -1 (which happens if there are no remote videos and thus "slots" becomes -1) the current page became -2.

How to test

  • Start a public call
  • In a private window, join the call
  • Leave the call
  • Join the call again

Result with this pull request

In the original window the guest is shown.

Result without this pull request

In the original window the guest is not shown. Changing to speaker mode and then back to grid view shows the guest again (because that resets currentPage to 0).

If the number of pages was -1 (which happens if there are no remote
videos and thus "slots" becomes -1) the current page became -2.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

danxuliu commented Feb 9, 2021

/backport to stable21

@danxuliu
Copy link
Member Author

danxuliu commented Feb 9, 2021

/backport to stable20.1

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants