-
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 - Mark the chat as "read" immediately upon switching to the tab #34537
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] |
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.
@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 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @hayata-suenaga
🎀 👀 🎀
C+ Reviewed
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.
👍
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
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