75634:macOS Safari - Conversation - digit:emoji: displays corrupted characters in Safari#77304
Conversation
…haracters in Safari
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@Krishna2323 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@abbasifaizan70 could you please add automated test coverage for the changes? Thanks! |
|
@abbasifaizan70 the changes does not work when editing messages, we also need to update |
|
@Krishna2323 updated the Edit case and added automated test cases. Thanks |
|
@Krishna2323 resolved feedback. Please have a look. Thanks |
|
@abbasifaizan70 could you please also update the testing steps for edit composer? Thanks! |
| const textBeforeCursor = emojiConvertedText.substring(0, cursorPosition); | ||
| const textWithZWNJBeforeCursor = insertZWNJBetweenDigitAndEmoji(textBeforeCursor); | ||
| zwnjOffset = textWithZWNJBeforeCursor.length - textBeforeCursor.length; | ||
| } |
There was a problem hiding this comment.
@abbasifaizan70 this block can be refactored since it’s duplicated in both components. Apart from this, everything looks good. Let me know once you’ve refactored it, and I’ll approve.
|
@abbasifaizan70 android app crashes when editing the message: Monosnap.screencast.2025-12-18.19-12-34.mp4 |
sure i am looking to fix all feedback. |
Screen.Recording.2025-12-19.at.1.59.29.AM.mov@Krishna2323 check please. Updated test steps for edit composer. Thanks |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_native.mp4Android: mWeb Chromeandroid_chrome.mp4iOS: HybridAppios_native.mp4iOS: mWeb Safariios_safari.mp4MacOS: Chrome / Safariweb_chrome.mp4web_safarii.mp4 |
|
@Krishna2323 Please have a look. I moved regex into CONST. Thanks. |
Beamanator
left a comment
There was a problem hiding this comment.
Looks great to me! But would be even slightly better to explain a bit more about the terms that people may not know much about
|
@Beamanator Added detailed comment about ZWNJ. Please have a look. Thanks |
Beamanator
left a comment
There was a problem hiding this comment.
Looks great to me! Thanks!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.2.89-1 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.2.89-6 🚀
|
Explanation of Change
This PR resolves an issue in Safari where adding an emoji after a digit results in corrupted characters.
Fixed Issues
$ #75634
PROPOSAL: #75634 (comment)
Tests
Testing Steps for New Message
Testing Steps for Edit Message
Offline tests
Same as tests.
QA Steps
Same as tests.
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))npm run compress-svg)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
Screen.Recording.2025-12-11.at.5.07.12.PM.mov
Android: mWeb Chrome
Screen.Recording.2025-12-11.at.4.56.56.PM.mov
iOS: Native
New message
Screen.Recording.2025-12-11.at.5.05.06.PM.mov
Edit message
Screen.Recording.2025-12-19.at.1.59.29.AM.mov
iOS: mWeb Safari
New message
Screen.Recording.2025-12-11.at.4.56.56.PM.mov
Edit message
Screen.Recording.2025-12-13.at.5.44.20.AM.mov
MacOS: Chrome / Safari
Safari:
New message
Screen.Recording.2025-12-11.at.4.37.11.AM.mov
Edit message
Screen.Recording.2025-12-13.at.3.44.58.AM.mov
Chrome:
New message
Screen.Recording.2025-12-11.at.4.39.07.AM.mov
Edit message
Screen.Recording.2025-12-13.at.3.45.57.AM.mov