Fix/66602 - Report field shows a broken icon instead of the custom global create emoji#67030
Fix/66602 - Report field shows a broken icon instead of the custom global create emoji#67030blimpich merged 2 commits intoExpensify:mainfrom
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari67030-web.mp4 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@ChavdaSachin Thank you for raising this issue. @akinwale It seems the root cause is a sanitation failure. Should we revert this PR and test again? |
|
@akinwale I have an idea to fix this. This will prevent wrapping emojis that already have tags and will only wrap emojis that don’t. App/src/components/RenderHTML.tsx Lines 18 to 20 in 0890f45 const EMOJI_ALONE = new RegExp(`(?:(?!<emoji[^>]*>))(${CONST.REGEX.EMOJIS.source})(?:(?!</emoji[^>]*>))`, 'gu'); // will be added to CONST.REGEX
return htmlParam.replace(EMOJI_ALONE, '<emoji>$1</emoji>'); |
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.1.89-1 🚀
|
|
@dmkt9 We failed this PR for Android app with an original issue as title in preview still shows a broken icon video_2025-08-05_11-58-21.mp4 |
|
@IuliiaHerets Thank you. @akinwale I just checked again and it fails in qemu-system-x86_64_9e2a8ImnJS.mp4 |
|
@dmkt9 You are welcome. |
@IuliiaHerets Based on the description, I believe this can be a separate issue. The original issue referred to the display of the emoji in the Report field of the expense report details view. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.89-21 🚀
|


Explanation of Change
Fixed Issues
$ #66602
PROPOSAL: #66602 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop