Skip to content

Conversation

@sampaiodiego
Copy link
Member

Proposed changes (including videos or screenshots)

Since we store user's username on message objects, we need to update them when a user updates his username, but this update was being triggered even if the user was updating other details (like his avatar for example) which was leading to unneeded updates of the messages. This PR fixes it by triggering an update of the message only if the username has been changed.

Issue(s)

Steps to test or reproduce

Further comments

@sampaiodiego sampaiodiego added this to the 3.10.1 milestone Jan 8, 2021
@sampaiodiego sampaiodiego merged commit 66ab0cb into develop Jan 8, 2021
@sampaiodiego sampaiodiego deleted the fix-update-message-when-changing-user-profile branch January 8, 2021 16:53
@sampaiodiego sampaiodiego mentioned this pull request Jan 8, 2021
vanhoang1107 pushed a commit to vanhoang1107/Rocket.Chat that referenced this pull request Jan 11, 2021
* rocketchat/master:
  Bump version to 3.10.3
  [FIX] User registration updating wrong subscriptions (RocketChat#20128)
  Bump version to 3.10.2
  [FIX] Tabbar is opened (RocketChat#20122)
  Bump version to 3.10.1
  [FIX] Actions from User Info panel (RocketChat#20073)
  [FIX] Messages being updated when not required after user changes his profile (RocketChat#20114)
  Custom fields not storing additional form values, fixing label and solving duplicated register. (RocketChat#19953)
  Fix livechat room breaking after return (RocketChat#20089)
  [FIX] Omnichannel raw model importing meteor dependency (RocketChat#20093)
  [FIX] User Audio notification preference not being applied (RocketChat#20061)
  [FIX] OAuth users being asked to change password on second login (RocketChat#20003)
  [FIX] Omnichannel Agents unable to take new chats in the queue (RocketChat#20022)
  [FIX] Omnichannel Business Hours form is not being rendered (RocketChat#20007)
  [FIX] Agent information panel not rendering (RocketChat#19965)
  [FIX] Apps Create Room method with agent not working (RocketChat#19997)
gabriellsh added a commit that referenced this pull request Jan 12, 2021
…info_page

* 'develop' of github.com:RocketChat/Rocket.Chat: (31 commits)
  [FIX] Normalize messages for users in endpoint chat.getStarredMessages (#19962)
  [FIX] minWidth in FileIcon to prevent layout to broke (#19942)
  [IMPROVE] Add extra SAML settings to update room subs and add private room subs (#19489)
  [IMPROVE] Rewrite User Dropdown and Kebab menu. (#20070)
  Language update from LingoHub 🤖 on 2021-01-11Z (#20146)
  [FIX] User registration updating wrong subscriptions (#20128)
  Rewrite Discussion Metric (#20117)
  [IMPROVE] Don't use global search by default (#19777)
  [FIX] Tabbar is opened (#20122)
  [FIX] Actions from User Info panel (#20073)
  Update password policy English translation (#20118)
  [FIX] Messages being updated when not required after user changes his profile (#20114)
  Custom fields not storing additional form values, fixing label and solving duplicated register. (#19953)
  Fix livechat room breaking after return (#20089)
  [FIX] Meteor errors not translating for toast messages (#19993)
  [FIX] Profile picture changing with username (#19992)
  [FIX] Search list filter (#19937)
  chore: Change return button (#20045)
  Rewrite : Message Thread metrics (#20051)
  [FIX] Omnichannel raw model importing meteor dependency (#20093)
  ...
@sampaiodiego sampaiodiego mentioned this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants