Skip to content

[fix/remove-deleted-sidebar-items] Keep sidebar items in sync with their folders - #1588

Open
davidfuentes024 wants to merge 3 commits into
owncloud:masterfrom
davidfuentes024:fix/remove-deleted-sidebar-items
Open

davidfuentes024 wants to merge 3 commits into
owncloud:masterfrom
davidfuentes024:fix/remove-deleted-sidebar-items

Conversation

@davidfuentes024

@davidfuentes024 davidfuentes024 commented Sep 23, 2026 •

Copy link
Copy Markdown

Fixes #1357

Sidebar items are stored locally and were never updated when their folder changed.

AccountController now tracks each sidebar item's location with trackItem(at:). When the folder disappears from that path, it is looked up by file ID:

  • found at a new path (renamed/moved) → the sidebar item is updated
  • not found → the sidebar item is removed

Tested on the simulator against oC 10.16.4:

  • Renamed in the app / on the server → sidebar shows the new name and opens the folder
  • Deleted in the app / on the server → removed from the sidebar
  • Existing folders stay, also after restarting the app or with the server unavailable

Track the location of each sidebar item and remove the item from the
sidebar once its folder no longer exists.

Fixes owncloud#1357
@davidfuentes024
davidfuentes024 requested a review from a team as a code owner September 23, 2026 07:14
@CLAassistant

CLAassistant commented Sep 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

When a tracked folder disappears from its path, look it up by file ID.
If it still exists, update the sidebar item's location instead of
removing it.
@davidfuentes024 davidfuentes024 changed the title [fix/remove-deleted-sidebar-items] Remove sidebar items of deleted folders [fix/remove-deleted-sidebar-items] Keep sidebar items in sync with their folders Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Remove item from sidebar if it is removed

2 participants