Skip to content

File Gallery does not update after deleting a file — requires page reload #1208

@DammyCodes-all

Description

@DammyCodes-all

Description:

When a file is deleted from the File Gallery sidebar, the deletion succeeds on the server but the file remains visible in the list until the page is reloaded. The UI does not re-render to reflect the deletion.

Steps to reproduce:

  • Open a channel and click the Files sidebar/gallery.
  • Hover over any file and open its menu.
  • Click Delete and confirm in the modal.
  • Observe that the deleted file is still shown in the list.
  • Redo the navigation again... only then does the file disappear.

Expected behavior:

After confirming deletion, the file should be immediately removed from the File Gallery list without requiring a reload.

Actual behavior:

The file persists in the gallery list after successful deletion. The backend deletes the file correctly, but the local file list state owned by FileGallery is never updated, so the stale list continues to render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions