Skip to content

[pull] master from mattermost:master#585

Merged
pull[bot] merged 2 commits intocode:masterfrom
mattermost:master
Mar 24, 2026
Merged

[pull] master from mattermost:master#585
pull[bot] merged 2 commits intocode:masterfrom
mattermost:master

Conversation

@pull
Copy link

@pull pull bot commented Mar 24, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Victor-Nyagudi and others added 2 commits March 24, 2026 15:38
* refactor(pdf_preview): migrate PDFPreview to function component

* test(pdf_preview): migrate tests to react testing library

* test(pdf_preview): store duplicate code in a constant

* chore: remove unused code

* refactor(pdf_preview): use object instead of array

Converted the caught error into a string to match onDocumentLoadError's parameter type.

* refactor(pdf_preview): wrap functions in useCallback

Added to dependencies to the useEffect attaching the scroll event listener.

* refactor(pdf_preview): remove redundant useEffect

* refactor(pdf_preview): cleanup debounced function in useEffect

* Pass all dependencies to effects that render pages

* Render pages on first load without scrolling

* Ensure loading a page doesn't overwrite results for other pages

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
* fix: allow substring matching when searching channel members

* fix lint error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
@pull pull bot locked and limited conversation to collaborators Mar 24, 2026
@pull pull bot added the ⤵️ pull label Mar 24, 2026
@pull pull bot merged commit 8bfa1ff into code:master Mar 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants