Skip to content

[BUG] Destructuring undefined Room for New User  #24273

@samad-yar-khan

Description

@samad-yar-khan

Description:

Whenever we setup a Rocket.Chat server and new user registers to the server (non-admin) they are not part of any other Room except #general. Whenever they access general and click on home, Rocket.Chat freezes due to destructuring of undefined object.

Steps to reproduce:

  1. Start and and setup a new Rocket.Chat server as admin.
  2. Logout from the server.
  3. Register as a new user and login.
  4. Click on #general
  5. Click on home icon.

Expected behavior:

  1. The user should return to the home screen.

Actual behavior:

  1. Rocket.Chat freezes and we see and error in console.
2022-01-24.20-51-41_Trim.mp4

Server Setup Information:

  • Version of Rocket.Chat Server: 4.4.0-develop
  • Operating System: Ubuntu (Using Gitpod)
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 14.18.2 - x64
  • MongoDB Version: 4.4.4

Client Setup Information

  • Desktop App or Browser Version: Google Chrome Browser Version 97.0.4692.71
  • Operating System: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions