regression: Prevent inherited properties from being treated as emoji shortcodes - #41523
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout. (5)
|
| Layer / File(s) | Summary |
|---|---|
Guard legacy lookup and test rendering apps/meteor/app/emoji-native/lib/legacyEmojioneMap.ts, apps/meteor/app/emoji-native/lib/shortnameToUnicode.ts, apps/meteor/tests/unit/app/emoji/emojiNativeParser.spec.ts |
The legacy map is created without a prototype, fallback lookup reads it directly, and rendering tests cover both known and prototype-like shortcodes. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Possibly related PRs
- RocketChat/Rocket.Chat#39411: Touches the native emoji shortcode conversion fallback using
legacyEmojioneMap. - RocketChat/Rocket.Chat#41305: Modifies emoji-native shortcode handling and related parser tests.
Suggested labels: type: bug
Suggested reviewers: martinschoeler, cardoso
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title accurately captures the main regression fix: inherited prototype properties no longer resolve as emoji shortcodes. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
Warning
Review ran into problems
🔥 Problems
Errors were encountered while retrieving linked issues.
Errors (1)
- CORE-2451: Request failed with status code 401
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 @coderabbitai help to get the list of available commands.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.7.0 #41523 +/- ##
================================================
Coverage ? 68.57%
================================================
Files ? 4138
Lines ? 159352
Branches ? 27970
================================================
Hits ? 109272
Misses ? 44942
Partials ? 5138
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|

Proposed changes (including videos or screenshots)
Fixes by adding a guard for the lookup with
Object.hasOwnso only own keys are matched and doesn't match withObject.prototype.Issue(s)
Steps to test or reproduce
Check the Announcement
Further comments
CORE-2451
Summary by CodeRabbit
Bug Fixes
:toString:.Tests