Rocket.chat: Username is static in reactions

Created on 28 May 2020  路  6Comments  路  Source: RocketChat/Rocket.Chat

Description:

After importing messages from Slack, the usernames in reactions are not properly connected to the user._ids and thus don't change with differing UI_use_real_name setting or changing usernames.

Steps to reproduce:

  1. Do Slack import with reactions
  2. Change RC username of one of the reacting users

Expected behavior:

Username in mentions changes with the respective new username and also heeds the UI_use_real_name setting.

Actual behavior:

Username stays the same from import and shows even if UI_use_real_name is true.
RC_issue

Server Setup Information:

  • Version of Rocket.Chat Server: 3.2.2
  • Operating System: Ubuntu
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 12.16.1
  • MongoDB Version: 3.6.14

Client Setup Information

This is client independent

stale bug

Most helpful comment

Great, that doesn't sound too complicated :D One would of course also have to change the importers to reflect this. I currently have a project, but if this is still open when I'm finished, I'd love to take a crack at it...

All 6 comments

First reaction:

image

After editing username

image

This has nothing to do with slack import. Currently reactions are kept based on their usernames.

You're completely right. Improving this would require changing the save reactions routine as well as the renderer I guess?

Yeah, probably. Would have to save based on userId and then get the username from the userId on the renderer.

Great, that doesn't sound too complicated :D One would of course also have to change the importers to reflect this. I currently have a project, but if this is still open when I'm finished, I'd love to take a crack at it...

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

The problem is still present in 3.8.0. When UI_use_real_name is true, the username field is always displayed instead of the name field

Can you re-open this issue please?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sta-szek picture sta-szek  路  3Comments

marceloschmidt picture marceloschmidt  路  3Comments

danpospisil picture danpospisil  路  3Comments

Buzzele picture Buzzele  路  3Comments

engelgabriel picture engelgabriel  路  3Comments