Skip to content

[FIX] Normalize Thread Messages - #20842

Closed
aKn1ghtOut wants to merge 1 commit into
RocketChat:developfrom
aKn1ghtOut:NormalizeThreadMessages
Closed

[FIX] Normalize Thread Messages#20842
aKn1ghtOut wants to merge 1 commit into
RocketChat:developfrom
aKn1ghtOut:NormalizeThreadMessages

Conversation

@aKn1ghtOut

@aKn1ghtOut aKn1ghtOut commented Feb 20, 2021

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the Contributing Guide
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Proposed changes (including videos or screenshots)

The getThreadMessages function was not using the normalize function, which adds the real names to the reactions in accordance with the Use Real Name setting. Added that. Now, the function works as expected.

Before:

Screenshot from 2021-02-21 00-15-18

Now:

Screenshot from 2021-02-21 00-11-11

Issue(s)

Closes #20841

Steps to test or reproduce

  1. Set Real Names setting on for the server, or use one where it is turned on(Ex: Open.Rocket.Chat).
  2. Open any thread with replies where at least one person other than the current user has reacted to a reply.
  3. Hover over the reaction to look at the names.

Further comments

@sampaiodiego

Copy link
Copy Markdown
Member

how this compares to #20634 ?

@rodrigok

Copy link
Copy Markdown
Member

Missing the normalization on REST APIs and on getThreadsList

@KevLehman

Copy link
Copy Markdown
Member

I think this is a duplicate of #20634

@aKn1ghtOut

Copy link
Copy Markdown
Contributor Author

The other PR author was going about it a different way before, and perceived it to be a different issue. I think he's now implementing the changes as prescribed right now.
I'll wait for a couple days. If not, I'll implement the additions @rodrigok mentioned here instead.

@CLAassistant

CLAassistant commented Dec 17, 2021

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@dougfabris

Copy link
Copy Markdown
Member

Hi there, thanks for the contribution! 🚀 💯

Closing this PR because it's stale now and it was already fixed here: #30069


Questions? Help needed? Feature Requests?

  • Join our Open Server in the #support channel and feel free to raise a question
  • Join our Community Forum and search/create a post there

@dougfabris dougfabris closed this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Reactions in Threads do not enforce Real Name Setting

7 participants