Rocket.chat: [BUG] Profile picture changes with change in username for a user

Created on 27 Dec 2020  路  7Comments  路  Source: RocketChat/Rocket.Chat

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
triaged bug

Most helpful comment

I believe the Default avatar "suggestion" should always show the color and letter changing, but the actual profile pic should only change when one of the buttons is clicked.

All 7 comments

Can I work on this issue?

Sir, Should the suggestion avatar image change with the change in the username or it should also be fixed.

Looks like it may be addressed in Rocket.Chat 3.10. Noted that the default avatar changes letter (not colour) as appropriate only after saving, and custom avatars are left intact.

https://github.com/RocketChat/Rocket.Chat/pull/19805 - For reference

Looks like it may be addressed in Rocket.Chat 3.10. Noted that the default avatar changes letter (not colour) as appropriate only after saving, and custom avatars are left intact.
Ok Got it

I believe the Default avatar "suggestion" should always show the color and letter changing, but the actual profile pic should only change when one of the buttons is clicked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neha1deshmukh picture neha1deshmukh  路  3Comments

Buzzele picture Buzzele  路  3Comments

tanc picture tanc  路  3Comments

royalaid picture royalaid  路  3Comments

mddvul22 picture mddvul22  路  3Comments