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:
- Click on your profile picture on the top-left.
- Select My Account.
- 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.

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
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:
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.
Server Setup Information:
Client Setup Information