-
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: old message not loading when online again #12126
fix: old message not loading when online again #12126
Conversation
@tienifr Please make sure to attach the issues like so |
I thought this was wrongly assigned but I saw no C+ on the issue. I don't have the bandwidth. Can we please reassign this @thienlnam |
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.
Great catch @tienifr Asking for some other c+ for testing
https://expensify.slack.com/archives/C02NK2DQWUX/p1666968409254259
Hey @tienifr, please attach ios screen recording and include your proposal link at the "Fixed issues" section. |
@thesahindia i just update IOS screen recording, please check. |
ScreenshotsWeb Screen.Recording.2022-10-28.at.8.58.32.PM.movMobile Web - Chrome video_20221028_212409_edit.mp4Mobile Web - Safari Screen.Recording.2022-10-29.at.2.45.19.AM.movDesktop Screen.Recording.2022-10-28.at.9.04.43.PM.moviOS Screen.Recording.2022-10-29.at.3.07.43.AM.movAndroid video_20221028_213314_edit.mp4LGTM! cc: @thienlnam C+ reviewed 🎀👀🎀
|
I noticed that it becomes hard to scroll at android after scrolling a little (not related to this PR) Screenrecording_20221028_231651.mp4 |
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.
Thank you!
@mountiny looks like this was merged without the checklist test passing. Please add a note explaining why this was done and remove the |
Not an emergency, tests were passing @thesahindia Can you raise this in open-source channel, although I think I have seen issues like this. |
✋ 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 production by @Julesssss in version: 1.2.22-3 🚀
|
Details
readOldestAction
will be called first and updateisLoadingMoreReportActions=true
butAPI
is not called =>responseData =undefined
and in functionSaveResponseInOnyx
will return void without updatingOnyx
.isLoadingMoreReportActions
still being true, at this case in functionloadMoreChats
,ReadOldestAction
won't be called when user back to online and scroll to get old message.isLoadingMoreReportActions: false
to value ofoptimisticData
in functionopenReport
andreconnect
Fixed Issues
$ #11737
Tests
PR Review Checklist
PR Author Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting 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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots
Web
afterUpdate.mp4
Mobile Web - Chrome
loadChorome.1.mp4
Mobile Web - Safari
loadSafari.1.mp4
Desktop
Screen.Recording.2022-10-21.at.01.28.07.mp4
iOS
old3.mp4
Android
loadMessageMobile.mp4