RocketChat / RocketChat/EmbeddedChat
File Gallery does not update after deleting a file — requires page reload
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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