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

Do not remove other event handlers when setting the active room #2229

Conversation

danxuliu
Copy link
Member

Fixes a regression introduced in #1926 (specifically, 0ab60ec)

How to test

  • Create a public conversation
  • Join the conversation as a guest
  • As a moderator, promote the guest to moderator

Result with this pull request

The participant list is shown for the guest.

Result without this pull request

The participant list is not shown for the guest (although the moderation menu is).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Besides being more correct, this also fixes the participant list not
shown for guest moderators, as the handler for "change:participantType"
events that shows and hides it in the public page is set during the UI
initialization, but it was removed when joining the room.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu
Copy link
Member Author

/backport to stable17

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Works

@nickvergessen nickvergessen merged commit b0bc48b into master Sep 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the do-not-remove-other-event-handlers-when-setting-the-active-room branch September 26, 2019 15:56
@backportbot-nextcloud
Copy link

backport to stable17 in #2230

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