fix: use emoji _id instead of filter key for collection data lookup #40221
fix: use emoji _id instead of filter key for collection data lookup #40221Naetiksoni08 wants to merge 1 commit intoRocketChat:developfrom
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2026-01-17T01:51:47.764ZApplied to files:
📚 Learning: 2026-03-11T22:04:20.529ZApplied to files:
📚 Learning: 2026-03-27T14:52:56.865ZApplied to files:
🔇 Additional comments (1)
WalkthroughBug fix in emoji suggestion provider: changed emoji data retrieval from using a fixed Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Proposed changes (including videos or screenshots)
While exploring
ComposerPopupProvider.tsxduring #40167, I found another bug in the same file.key is the filter string (e.g. :sm), not the emoji's actual id. So every emoji in the list was getting the data of the filter string — which mostly doesn't exist — instead of its own data.
This fix applies to both the emoji send popup (triggered by :) and the reaction add popup (triggered by +:).
Steps to test or reproduce
Further comments
Found this bug while exploring ComposerPopupProvider.tsx during #40167. Both emoji popup configs had the same bug.
Summary by CodeRabbit