-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
src/libs/actions/Report.ts
Outdated
@@ -1139,7 +1139,7 @@ function expandURLPreview(reportID: string, reportActionID: string) { | |||
} | |||
|
|||
/** Marks the new report actions as read */ | |||
function readNewestAction(reportID: string) { | |||
function readNewestAction(reportID: string, shouldResetUnread = false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldResetUnreadMarker
is a better name, IMO
And can we add a comment here to explain the parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tienifr Friendly bump, wdyt about the naming suggestion ^ ?
Thanks @eh2077 for additional testing! 🙌 |
@MonilBhavsar @eh2077 I merged main and resolved comment |
src/libs/actions/Report.ts
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the comment. @MonilBhavsar Can you help check it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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