Skip to content

fix(ui): load messages when list cannot scroll - #13708

Merged
kesselb merged 1 commit into
nextcloud:mainfrom
abhinavohri:fix/list-layout-load-more
Sep 20, 2026
Merged

kesselb merged 1 commit into
nextcloud:mainfrom
abhinavohri:fix/list-layout-load-more

Conversation

@abhinavohri

@abhinavohri abhinavohri commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #13642

In list layout, the first 20 messages can fit within a tall viewport. No scroll event fires, so Mail never requests the remaining messages.

To fix this, we check the infinite-scroll threshold after the message list updates. This allows the next page to load even when the list cannot yet scroll. The load-more handler also prevents overlapping requests and stops after the final page.

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI.

When the first page fits within the list viewport, no scroll event fires and pagination stops even though more messages exist. Recheck the infinite-scroll threshold after list updates so the remaining pages can load.

Assisted-by: Codex:gpt-5
Signed-off-by: Abhinav Ohri <abhinavohri13@gmail.com>
@abhinavohri
abhinavohri force-pushed the fix/list-layout-load-more branch from 187948f to 1e5f733 Compare September 20, 2026 07:57

@GretaD GretaD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and works, thanks a lot

@kesselb kesselb added the AI assisted This PR contains AI-assisted commits label Sep 20, 2026
@kesselb
kesselb merged commit 481dc7c into nextcloud:main Sep 20, 2026
33 of 34 checks passed
@kesselb

kesselb commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

/backport to stable5.12 please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List Layout only shows top 20 messages if there's no vertical scrollbar (tall screen, tiny text)

3 participants