-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: User roles showing on the message header after opening user card, but with "Show roles" setting/preference disabled #37984
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
WalkthroughThe visibility condition for the MessageRoles component in MessageHeader has been updated to require both the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #37984 +/- ##
===========================================
- Coverage 70.65% 70.60% -0.05%
===========================================
Files 3143 3143
Lines 108684 108684
Branches 19546 19574 +28
===========================================
- Hits 76790 76738 -52
- Misses 29894 29942 +48
- Partials 2000 2004 +4
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…, but with "Show roles" setting/preference disabled (RocketChat#37984)
Proposed changes (including videos or screenshots)
The setting and preference were being used to disable a
useQuerythat loads the roles, which populate a zustand store that is then consumed to show the data. The issue was that although that query was being disabled, other places can still load that data (such as the userCard) and also update the same store, but the flag wasn't being used to hide the roles in the UI, it just disabled the query. This caused the roles to become visible in the message after another place loads such information.Issue(s)
CORE-1592
Steps to test or reproduce
Further comments
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.