Skip to content

[stable35] fix: only call the legacy files sidebar methods when they exist - #3448

Merged
skjnldsv merged 3 commits into
stable35from
fix/legacy-sidebar-calls-stable35
Oct 20, 2026
Merged

skjnldsv merged 3 commits into
stable35from
fix/legacy-sidebar-calls-stable35

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

Backport of #3447

On Nextcloud 35, OCA.Files.Sidebar only holds the new sidebar's shared state, so the viewer's legacy calls threw: closing a preview gave TypeError: OCA.Files.Sidebar.setFullScreenMode is not a function, and opening the sidebar from the viewer threw on OCA.Files.Sidebar.open. Both now check that the method exists, like beforeOpen() already did.

Fixes #3446

The sidebar e2e suite now fails on any page error, closing the viewer included.

馃懢 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

@skjnldsv skjnldsv added bug Something isn't working 3. to review Waiting for reviews labels Oct 19, 2026
@skjnldsv skjnldsv self-assigned this Oct 19, 2026
@skjnldsv

Copy link
Copy Markdown
Member Author

/compile

@skjnldsv

Copy link
Copy Markdown
Member Author

/compile rebase

skjnldsv and others added 3 commits October 20, 2026 06:50
Nextcloud 35 defines OCA.Files.Sidebar only as a namespace for the new
sidebar's shared state, so closing the viewer threw
'OCA.Files.Sidebar.setFullScreenMode is not a function', and opening the
sidebar from the viewer threw on OCA.Files.Sidebar.open.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvo忙 <14975046+skjnldsv@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command
nextcloud-command force-pushed the fix/legacy-sidebar-calls-stable35 branch from 3ca4307 to 2480817 Compare October 20, 2026 06:52
@skjnldsv
skjnldsv merged commit d952433 into stable35 Oct 20, 2026
19 checks passed
@skjnldsv
skjnldsv deleted the fix/legacy-sidebar-calls-stable35 branch October 20, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants