Fix - Mark the chat as "read" immediately upon switching to the tab#34537
Conversation
|
@abdulrahuman5196 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] |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
@FitseTLT I tested on web and the changes are working fine. I found some inconsistent issues, but I don't think its related to this PR. Anyways I will be testing in all platforms tomorrow and approve if no issues there as well.
Meanwhile kindly fix the minor comment i mentioned below.
|
@abdulrahuman5196 there are minor things I will update before U test. Give a min, I will notify U. |
|
Finished on Updating. @abdulrahuman5196 U're good to go 👍
|
|
Please note that currently receiving message will reset manuallyMarkedMarker similarly moving to other tab and coming back to the chat tab will reset manuallyMarkedMarker. @abdulrahuman5196 |
|
I don't understand this @FitseTLT . Could you provide more information on the same.
|
|
I mean on latest main if U manually mark a message and then receive a new message it resets the marker. doesn't it ?? Similarly on this pr manually marked messages are reset on visibility change (changing from other browser tab to the chat (expensify) tab). That's what I meant. |
|
Got it. Working on review now. |
|
@FitseTLT Could you kindly test and add videos for other platforms as well? Even though this change is most likely to have effect only on web. We should test others platforms to see if there is no breakage and add the video on the same. |
|
@FitseTLT I see an issue related to this change. Without receiving any new messages. Same is not happening in staging. Screen.Recording.2024-01-20.at.12.55.02.AM.mov |
|
@abdulrahuman5196 I have updated the code so that our new effect (the one that runs when we switch back tabs) to be only run when a user has received a new message after they have switched away from the tab, I think that's more aligned with the requirements of the issue. Of course now manually marked messages will not be reset by our new effect and it's more logical. |
Is this change to solve this issue #34537 (comment)? Anyways will go through with the testing again. |
|
The Bug previously mentioned is still reproducible. @FitseTLT is working on the fix for the same. Screen.Recording.2024-01-23.at.1.00.02.AM.mov |
|
@abdulrahuman5196 Fixed 👍 |
|
Done @abdulrahuman5196 but android native is failing I will upload as soon as I finish 👍 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-24.at.12.19.16.AM.movAndroid: mWeb ChromeScreen.Recording.2024-01-24.at.12.15.38.AM.moviOS: NativeScreen.Recording.2024-01-23.at.11.29.24.PM.moviOS: mWeb SafariScreen.Recording.2024-01-23.at.11.32.33.PM.movMacOS: Chrome / SafariScreen.Recording.2024-01-23.at.9.08.56.PM.movMacOS: DesktopScreen.Recording.2024-01-23.at.10.04.40.PM.mov |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @hayata-suenaga
🎀 👀 🎀
C+ Reviewed
|
My PR will also address this issue, but instead relies on the focus change event to recheck if it needs to mark as read. |
|
✋ 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/hayata-suenaga in version: 1.4.32-0 🚀
|
[CP Staging] Revert "Merge pull request #34537 from FitseTLT/fix-mark-as-read-on-v…
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.32-5 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.4.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|
Details
Fixed Issues
$ #33680
PROPOSAL: #33680 (comment)
Tests
Offline tests
same
QA Steps
same
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Android: mWeb Chrome
2024-01-22_23-59-11.mp4
iOS: Native
ios.native.1.mp4
iOS: mWeb Safari
ios.web.1.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desk1.mp4