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 |
| 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.
The style is odd, this should go after the if not in a new line 🤔
There was a problem hiding this comment.
Prettier doesn't allow me to move it after the if
There was a problem hiding this comment.
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
|
✋ 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
lastViisbleActionCreateddoesn'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 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
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