Skip to content

Leave button for channels is available even if the user isn't subscribed to the channel #35661

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

Open
ppl-call-me-tima opened this issue Mar 31, 2025 · 1 comment

Comments

@ppl-call-me-tima
Copy link

ppl-call-me-tima commented Mar 31, 2025

Description:

The room / channel information page that allows the user to see the channel avatar, hide or leave the channel also provides the Leave option visible to the user, even when they haven't joined / subscribed to the channel.

Steps to reproduce:

  1. Navigate to a channel that you aren't a part of:
    • go to Directory
    • from the list, select a channel you aren't a part of
  2. click on the channel name / Room Information button
  3. the Leave button is available for a click

Expected behavior:

The Leave button shouldn't be available as it is not useful to the user who hasn't subscribed to the room in the first place.

Actual behavior:

Leave button is visible along with the Join button as well:

Image

Server Setup Information:

  • Version of Rocket.Chat Server: 7.5.0-develop
  • License Type: Starter
  • Number of Users: 2
  • Operating System: Linux x64 [5.15.167.4-microsoft-standard-WSL2]
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: true
  • NodeJS Version: v22.13.1
  • MongoDB Version: 7.0.5

Client Setup Information

  • Browser Version: Chrome 134.0.6998.178
  • Operating System: Windows 11 x64

Further Discussion

Fix proposed: #35670

@Swatibharti46
Copy link

@ppl-call-me-tima I would like to work on this issue

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

No branches or pull requests

2 participants