-
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
Expense chat doesn't scroll to bottom when send message or money request #42030
Conversation
… in two devices at the same time
@hoangzinh 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-05-14.at.7.56.29.PM.movScreen.Recording.2024-05-14.at.7.57.38.PM.movScreen.Recording.2024-05-14.at.8.00.31.PM.movScreen.Recording.2024-05-14.at.8.01.53.PM.moviOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@samilabud This happened while I was testing. Trying to see if I can reproduce. Screen.Recording.2024-05-14.at.8.09.11.PM.mov |
The above issue seems to be happening intermittently. Specifically, it has something to do with sending messages in offline mode when you have sent the previous message in online mode. |
Hey @allroundexperts could you try again? I think this happened because of a threshold validation I have added in the last commit. |
@samilabud Now, its even more broken. Screen.Recording.2024-05-14.at.8.42.55.PM.mov |
948a3ee
to
9336e23
Compare
Hi @allroundexperts, I let the things as the same and did merged with master branch, also did rebuild of everything (graddle, npm, removed node_modules, etc) and tried to reproduced it: Autoscroll.-.Test.mp4Am I missing something? The only weird thing I've seen is that sometimes the server time is different from our optimistic time (different in hours). |
Hm... is that causing the issue I mentioned above? |
I can't reproduce what you mentioned above 🥲, however when there are time differences the autoscroll do not going to work, sometimes I saw that behavior when I was debugging, then expensify services would stop responding for a few seconds and then fix itself. And this day, this was happening a lot (also in this thread many people was presenting issues). BTW I would like to know the conditions/steps to reproduce the issue that you mentioned above. |
I don't have the exact steps. I spent like 40 minutes yesterday trying to reproduce but it happened randomly without any definite steps. This makes me think that it might be related to following:
@mountiny Do you think we should proceed here with this fix? It's a lot better than before, but I'm still seeing this issue happening some times (Almost 1 in 20 times). |
Hmm I have not seen this bug before #42030 (comment) Is this reproducible in main too? I feel like it might be related to these changes we should make sure its fixed |
Hi @samilabud can you close this PR as it has been fixed in another PR? Thank you. |
Details
Fixed Issues
$ #40594
PROPOSAL: #40594 (comment)
Tests
Offline tests
QA Steps
Try the next online and offline:
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
Android.-.Autoscroll.test.mp4
Android: mWeb Chrome
Chrome.Android.-.Autoscroll.test.mp4
iOS: Native
IPhone.-.Autoscroll.test.mp4
iOS: mWeb Safari
Safari.Iphone.-.Autoscroll.test.mp4
MacOS: Chrome / Safari
MAC.Chrome.-.Autoscroll.test.mp4
MacOS: Desktop
MAC.Desktop.-.Autoscroll.test.mp4