-
Notifications
You must be signed in to change notification settings - Fork 3k
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 indicator not displayed after flagging message as offensive #39482
Fix unread message indicator not displayed after flagging message as offensive #39482
Conversation
Additional video shows that mark as unread works for actionable mention whisper. Screen.Recording.2024-04-03.at.18.15.42.mov |
Reviewing today. |
@bernhardoj Please merge latest main. |
Done |
Apologies for the delay as I ran into some build issues when trying to test with new arch merged on Android. I've completed testing and review. |
Reviewer Checklist
Screenshots/VideosAndroid: Native39482-android-native.mp4Android: mWeb Chrome39482-android-chrome.mp4iOS: Native39482-ios-native.mp4iOS: mWeb Safari39482-ios-safari.mp4MacOS: Chrome / Safari39482-web.mp4MacOS: Desktop39482-desktop.mp4 |
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.
LGTM.
@@ -998,7 +998,12 @@ function markCommentAsUnread(reportID: string, reportActionCreated: string) { | |||
|
|||
// Find the latest report actions from other users | |||
const latestReportActionFromOtherUsers = Object.values(reportActions ?? {}).reduce((latest: ReportAction | null, current: ReportAction) => { | |||
if (current.actorAccountID !== currentUserAccountID && (!latest || current.created > latest.created)) { | |||
if ( | |||
current.actorAccountID !== currentUserAccountID && |
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.
The style is odd, this should go after the if not in a new line 🤔
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.
Prettier doesn't allow me to move it after the if
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.
There are a few codes that has the same style, for example,
App/src/pages/home/report/ReportActionsList.tsx
Lines 219 to 225 in ed7029b
useEffect(() => { | |
if ( | |
scrollingVerticalOffset.current < AUTOSCROLL_TO_TOP_THRESHOLD && | |
previousLastIndex.current !== lastActionIndex && | |
reportActionSize.current > sortedVisibleReportActions.length && | |
hasNewestReportAction | |
) { |
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.
Wow so ugly but sure 😄
✋ 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/pecanoro in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
When we mark as unread, it will find the last action from other users including whisper action, but the report
lastViisbleActionCreated
doesn't include a whisper actioncreated
, except forACTIONABLEMENTIONWHISPER
.Fixed Issues
$ #39170
PROPOSAL: #39170 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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
Screen.Recording.2024-04-03.at.18.16.49.mov
Android: mWeb Chrome
Screen.Recording.2024-04-03.at.18.11.30.mov
iOS: Native
Screen.Recording.2024-04-03.at.18.22.08.mov
iOS: mWeb Safari
Screen.Recording.2024-04-03.at.18.18.08.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-03.at.18.09.24.mov
MacOS: Desktop
Screen.Recording.2024-04-03.at.18.09.52.mov