RocketChat / RocketChat/EmbeddedChat

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

Open
#1,208 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
165
Forks
381
Avg merge
1d 2h
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the FileGallery component and trace the delete confirmation flow and the local file list state it owns. Reproduce the deletion, then verify that the deleted file disappears immediately from the gallery without a page reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.