RocketChat / RocketChat/Rocket.Chat.ReactNative

bug: Username not updating while switching the workspace

Open
#6,762 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🍭 good first issue 🐛 bug
Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

Describe the Bug

the username not updating while switching workspace
i created two accounts with same email on different workspaces and tried to switch between them the username shows the username in first workspace

Steps to Reproduce
  1. Create two accounts in different workspaces with the same email address and a different username.
  2. Log in to both workspaces via the mobile app.
  3. Switch to the first workspace and view the profile.
  4. Observe the username.
  5. Switch to the second workspace and view the profile.
  6. Observe the username.
  7. logout from first workspace
  8. observe username in 2nd workspace
Expected Behavior

it should show the username of 2nd workspace account

Actual Behavior

its showing the username of first workspace account

Rocket.Chat Server Version

7.11.0

Rocket.Chat App Version

4.65.0

Device Name

Motorola G32

OS Version

13

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the workspace-switching flow on the mobile app using two accounts with the same email but different usernames, then trace how the active workspace profile is loaded and retained through logout. Done means the profile shows the username belonging to the currently selected workspace, including after logging out of the first workspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.