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 adding the same participant several times in a row #940

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jun 6, 2018

How to test (a):

  • Create a group room
  • Add a user to the room
  • Create another group room
  • Add the same user to the new room

How to test (b):

  • Create a group room
  • Add a user to the room
  • Remove the user from the room
  • Add the user again to the room

Expected result:
The user is added.

Actual result:
The user is not added.

When a participant is selected in the select2 dropdown the "change"
event is triggered for the "Add participants" input; this sets the value
of the input and also adds the participant to the room. However, the
event is triggered only if the selected item is different than the
current value of the "Add participant" input. Due to this, the value has
to be cleared when it is set to make possible to add the same
participant several times in a row (for example, in different rooms).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@Ivansss Ivansss merged commit 8aa29fd into master Jun 6, 2018
@Ivansss Ivansss deleted the fix-adding-the-same-participant-several-times-in-a-row branch June 6, 2018 13:33
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.

2 participants