Skip to content

fix: clear local state immediately when a file is deleted in FileGallery#1212

Open
DammyCodes-all wants to merge 2 commits intoRocketChat:developfrom
DammyCodes-all:fix/remove-deleted-file-from-local-state
Open

fix: clear local state immediately when a file is deleted in FileGallery#1212
DammyCodes-all wants to merge 2 commits intoRocketChat:developfrom
DammyCodes-all:fix/remove-deleted-file-from-local-state

Conversation

@DammyCodes-all
Copy link

@DammyCodes-all DammyCodes-all commented Mar 17, 2026

Brief Title

Fix File Gallery doesn't clear local state when a file is deleted

Acceptance Criteria fulfillment

  • Deleting a file from the File Gallery immediately removes it from the list without requiring a page reload.
  • The delete confirmation modal closes correctly after deletion
  • A success toast is shown on successful deletion; an error toast is shown on failure.
  • The deleted message is also removed from the global message store.

Fixes #1208

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-1212 after approval. Contributors are requested to replace 1212 with the actual PR number.

@CLAassistant
Copy link

CLAassistant commented Mar 17, 2026

CLA assistant check
All committers have signed the CLA.

@DammyCodes-all DammyCodes-all changed the title fix: streamline file deletion process and enhance message handling in… fix: clear local state immediately when a file is deleted in FileGallery Mar 17, 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.

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

2 participants