Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Sep 2, 2019

Bug from #1926

Sending a request to the server to set the same lobby state is valid, but unneeded. Moreover, the CallInfoView is rendered again only when the lobby state changes, so if the same state is set again a loading spinner will be shown instead of the radio button until something else changes in the room.

How to test (Scenario 1)

  • Create a conversation
  • Enable for all participants

Result with this pull request

No request to set the lobby state is sent, and the radio button for All participants is not modified.

Result without this pull request

A request to set the lobby state is sent, and the radio button for All participants becomes a loading spinner.

How to test (Scenario 2)

  • Create a conversation
  • Enable for moderators only
  • Enable again for moderators only

Result with this pull request

The request to set the lobby state is not sent again, and the radio button for Moderators only is not modified.

Result without this pull request

Another request to set the lobby state is sent, and the radio button for Moderators only becomes a loading spinner.

Sending a request to the server to set the same lobby state is valid,
but unneeded. Moreover, the CallInfoView is rendered again only when the
lobby state changes, so if the same state is set again a loading spinner
will be shown instead of the radio button until something else changes
in the room.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu force-pushed the fix-setting-again-the-same-lobby-state-in-the-ui branch from 8c901ec to b1ed3c0 Compare September 2, 2019 08:37
Copy link
Member

@Ivansss Ivansss left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@Ivansss Ivansss merged commit 9f9bd81 into master Sep 2, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-setting-again-the-same-lobby-state-in-the-ui branch September 2, 2019 13:15
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