fix Unread message marker disappeared for next message#42568
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Native0-android.mp4Android: mWeb Chrome0-mobile-chrome.mp4iOS: Native0-ios.mp4iOS: mWeb Safari0-mobile-safari.mp4MacOS: Chrome / Safari0-web.mp4MacOS: Desktop0-desktop.mp4 |
|
Did additional tests and looks good 0-additional_tests.mp4 |
|
|
||
| /** Marks the new report actions as read */ | ||
| function readNewestAction(reportID: string) { | ||
| function readNewestAction(reportID: string, shouldResetUnread = false) { |
There was a problem hiding this comment.
shouldResetUnreadMarker is a better name, IMO
And can we add a comment here to explain the parameter
There was a problem hiding this comment.
@tienifr Friendly bump, wdyt about the naming suggestion ^ ?
|
Thanks @eh2077 for additional testing! 🙌 |
|
@MonilBhavsar @eh2077 I merged main and resolved comment |
| function readNewestAction(reportID: string) { | ||
| /** Marks the new report actions as read | ||
| * | ||
| * @param shouldResetUnreadMarker Should we reset unread indicator |
There was a problem hiding this comment.
Thanks for adding! but this comment is self-explanatory by reading the name. Can you add more details like in which particular case we're adding it to not reset the marker
There was a problem hiding this comment.
I updated the comment. @MonilBhavsar Can you help check it?
|
✋ 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 production by https://github.com/Julesssss in version: 1.4.79-11 🚀
|
Details
Fixed Issues
$ #39871
PROPOSAL: #39871 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
output.mp4
Android: mWeb Chrome
output.mp4
iOS: Native
output.mp4
iOS: mWeb Safari
output.mp4
MacOS: Chrome / Safari
output.mp4
MacOS: Desktop
output.mp4