-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: wrong scroll position when switching DMs #36662
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 091f1a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #36662 +/- ##
========================================
Coverage 65.70% 65.71%
========================================
Files 3199 3199
Lines 106892 106896 +4
Branches 20343 20341 -2
========================================
+ Hits 70232 70244 +12
+ Misses 34015 34008 -7
+ Partials 2645 2644 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Fixes issue that caused the
useRestoreScrollPositionhook to not be at bottom whenatBottom = true. My guess is that the scrolling operation for on bottom was being done someplace else, but it was removed on a refactor.Proposed changes (including videos or screenshots)
Issue(s)
CORE-1187
Steps to test or reproduce
Open a direct message (DM A) with any user, that have enough messages to scroll. Keep the scroll at the bottom of the page
Navigate to another direct message (DM B) with a different user.
In DM B, manually scroll up to locate an older message.
return to DM A by clicking on it in the sidebar.
Observe the scroll position in DM A.
Further comments