Skip to content

[BUG] Profile picture changes with change in username for a user #19975

@RonLek

Description

@RonLek

Description:

As and when the username for a user is changed, the user's corresponding profile picture also changes automatically. In case the user justs wants to change her username she would have to re-upload her profile picture back again unless she selects her current profile picture from the right every time before changing the username.

Moreover, if an existing username is typed, that user's profile picture appears. Only a message saying "Username already exists" would suffice without changing the profile picture.

Steps to reproduce:

  1. Click on your profile picture on the top-left.
  2. Select My Account.
  3. Edit your username.

Expected behavior:

The profile picture remains the same and only the username changes. If an already taken username is entered, the profile picture of that user shouldn't appear.

Actual behavior:

The profile picture changes as and when the username changes. On clicking "Save Changes" the changed profile picture appears.

ezgif com-video-to-gif (4)

Server Setup Information:

  • Version of Rocket.Chat Server: 3.9.3
  • Operating System: Ubuntu
  • NodeJS Version: 12.18.2
  • MongoDB Version: 4.4.2

Client Setup Information

  • Desktop App or Browser Version: Google Chrome
  • Operating System: Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssue reviewed and properly taggedtype: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions