Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: incorrect chat message reaction text #23260

Merged
merged 1 commit into from Aug 25, 2023

Conversation

jjaffeux
Copy link
Contributor

Prior to this fix the text would be incorrect when the current user reacted and number of reactions was above 2.

This commit fixes the bug and also makes the following changes:

  • separates text computation in a standalone lib to make it easier to test
  • increases the number of displayed usernames in reaction text (from 5 to 15)
  • adds a full test suite for this new getReactionText function
  • fixes a bug in reaction fabricator which would prevent to change the count to zero

Prior to this fix the text would be incorrect when the current user reacted and number of reactions was above 2.

This commit fixes the bug and also makes the following changes:
- separates text computation in a standalone lib to make it easier to test
- increases the number of displayed usernames in reaction text (from 5 to 15)
- adds a full test suite for this new `getReactionText` function
- fixes a bug in reaction fabricator which would prevent to change the count to zero
@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Aug 25, 2023
@jjaffeux jjaffeux merged commit 311b28d into discourse:main Aug 25, 2023
13 checks passed
@jjaffeux jjaffeux deleted the chat/message-reaction-text branch August 25, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
2 participants