Skip to content

Conversation

@MartinSchoeler
Copy link
Member

@MartinSchoeler MartinSchoeler commented Aug 7, 2025

Fixes issue that caused the useRestoreScrollPosition hook to not be at bottom when atBottom = 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

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Aug 7, 2025

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Aug 7, 2025

🦋 Changeset detected

Latest commit: 091f1a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 39 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/http-router Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/instance-status Patch
@rocket.chat/omni-core Patch
@rocket.chat/omni-core-ee Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-36662/

Built to branch gh-pages at 2025-08-07 18:02 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.71%. Comparing base (4e55ef4) to head (091f1a7).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           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     
Flag Coverage Δ
e2e 56.96% <100.00%> (-0.02%) ⬇️
unit 71.30% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MartinSchoeler MartinSchoeler marked this pull request as ready for review August 7, 2025 18:15
@MartinSchoeler MartinSchoeler requested a review from a team as a code owner August 7, 2025 18:15
@ggazzo ggazzo added this to the 7.10.0 milestone Aug 8, 2025
@ggazzo ggazzo added the stat: QA assured Means it has been tested and approved by a company insider label Aug 8, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Aug 8, 2025
@ggazzo ggazzo merged commit 1d8fa0b into develop Aug 8, 2025
88 of 90 checks passed
@ggazzo ggazzo deleted the fix/wrong-scroll-pos branch August 8, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants