Fix unread issue in combine report - #40676
Conversation
|
@paultsimura 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] |
|
@paultsimura For IOS native, when we scroll up the |
| const unreadActionSubscriptionForTransactionThread = DeviceEventEmitter.addListener(`unreadAction_${transactionThreadReport?.reportID}`, (newLastReadTime) => { | ||
| resetUnreadMarker(newLastReadTime); | ||
| setMessageManuallyMarkedUnread(new Date().getTime()); | ||
| }); | ||
|
|
||
| const readNewestActionSubscriptionForTransactionThread = DeviceEventEmitter.addListener(`readNewestAction_${transactionThreadReport?.reportID}`, (newLastReadTime) => { | ||
| resetUnreadMarker(newLastReadTime); | ||
| setMessageManuallyMarkedUnread(0); | ||
| }); |
There was a problem hiding this comment.
Please wrap these into if (transactionThreadReport?.reportID) ...
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid20.38.mp4Android: mWeb Chromechrome20.38.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-04-22.at.20.38.0520.38.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-04-22.at.20.35.2120.38.mp4MacOS: Chrome / SafariScreen.Recording.2024-04-22.at.20.24.3020.38.mp4MacOS: DesktopScreen.Recording.2024-04-22.at.20.26.2220.38.mp4 |
Co-authored-by: Pavlo Tsimura <paultsimura@gmail.com>
paultsimura
left a comment
There was a problem hiding this comment.
After these changes we'll be good to go
Co-authored-by: Pavlo Tsimura <paultsimura@gmail.com>
Co-authored-by: Pavlo Tsimura <paultsimura@gmail.com>
|
@paultsimura Updated your suggestion. |
paultsimura
left a comment
There was a problem hiding this comment.
LGTM ✔️
Note: the "New messages" button stopped scrolling down, but it's also happening in prod.
|
@amyevans I'm currently not in the C+ team, so the automation didn't assign you. Please proceed with the review here |
Thanks, confirmed this as well. Are you aware of a tracking issue for it? I see #40911 which might cover it, though it's technically currently scoped to the Self DM, so just wondering if there's another GH floating around. I'm surprised the bug made it to prod without being caught. The code here LGTM! |
|
✋ 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/amyevans in version: 1.4.66-0 🚀
|
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.66-5 🚀
|
Details
Fix unread issue in combine report
Fixed Issues
$ #39407
PROPOSAL: #39407 (comment)
Tests
New messagebutton appearsOffline tests
Same as above
QA Steps
New messagebutton appearsPR 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-22.at.17.06.14.mov
Android: mWeb Chrome
Screen.Recording.2024-04-22.at.17.03.50.mov
iOS: Native
Screen.Recording.2024-04-22.at.17.12.38.mov
iOS: mWeb Safari
Screen.Recording.2024-04-22.at.17.00.25.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-22.at.16.56.19.mov
MacOS: Desktop
Screen.Recording.2024-04-22.at.17.14.23.mov