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

Show confirmation before leaving room #2113

Merged
merged 2 commits into from
Feb 3, 2016

Conversation

brakhane
Copy link
Contributor

@brakhane brakhane commented Feb 3, 2016

This PR fixes #1543.

  1. The "leave room" buttons are hidden if unread messages are shown
  2. A confirmation dialog is shown when hiding or leaving channels.

The unread message counter overlapped the "leave room" button, but if
a user clicked on the counter, the "leave room" button was still active,
causing users to accidentially leave the room.

Prevent this by hiding the leave buttons if unread messages are shown.
@rodrigok
Copy link
Member

rodrigok commented Feb 3, 2016

LGTM

@rodrigok
Copy link
Member

rodrigok commented Feb 3, 2016

@brakhane thanks, your PR is very useful :)

@engelgabriel
Copy link
Member

LGTM

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.

Too easy to accidentally leave channels
3 participants