-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: show users list when names array is empty #6873
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
base: develop
Are you sure you want to change the base?
fix: show users list when names array is empty #6873
Conversation
Fixed issue where users who reacted with a particular emoji were not shown when switching to the emoji tab. The condition was requiring both usernames and names to be truthy, but names can be an empty array. Changed the condition to only check if usernames exist and have length, making names optional.
WalkthroughFixed a bug in ReactionsList rendering where the UsersList failed to display on the second tab. The renderScene condition now properly validates that usernames exist with length greater than 0, and provides a safe default empty array for names. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
As mentioned in #6540 (comment), I have a question, what happens if the workspace has enabled correct me if i am wrong |
|
yes correct |
|
I tried to reproduce this issue and found one possible cause using the following steps
|
|
let me try too |






This PR fixes an issue where the list of users reacting to a message was not displayed when switching to an emoji-specific tab in the reaction modal.
Issue(s)
Closes #6540
How to test or reproduce
Screenshots
Before vs After
Additional Screenshots
Types of changes
Checklist