Skip to content

feat(chat): Added deleting of attachment from device after its unselection (Issue #7128)#7131

Merged
denys-kolomiitsev merged 5 commits into
epam:developmentfrom
Kuznietsov:feature/7128
Jun 10, 2026
Merged

feat(chat): Added deleting of attachment from device after its unselection (Issue #7128)#7131
denys-kolomiitsev merged 5 commits into
epam:developmentfrom
Kuznietsov:feature/7128

Conversation

@Kuznietsov

@Kuznietsov Kuznietsov commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Issue #7128

Description of changes

When a file was attached in Chat via drag-and-drop (or other quick upload paths), it was added to state.files.files and selected for the message. Removing the attachment chip only cleared it from selectedFilesIds, so the file remained in state.files.files. In-flight uploads were cancelled but not removed from state; completed uploads were not cleaned up at all.

Unselecting a quick-uploaded attachment before sending should fully remove it from the files store (and from storage when already uploaded). Files picked from the file manager should only be deselected and remain available in storage. Quick uploads are now marked with isQuickAttachment and deleted on unselect via the existing deleteFile flow.

UI changes

Screen.Recording.2026-06-10.at.07.57.28.mov

Checklist

  • the pull request name ends with (Issue #<ISSUE_ID>) (comma-separated list of issues)
  • I confirm that I don't share any confidential information like API keys or any other secrets and private URLs

@Kuznietsov Kuznietsov changed the title feat (chat): Added deleting of quick attachment after its unselection. Issue #7128 feat(chat): Added deleting of quick attachment after its unselection. Issue #7128 Jun 10, 2026
@denys-kolomiitsev

denys-kolomiitsev commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

/deploy-review

GitHub actions run: 27270229323

Stage Status
deploy-review Success ✅
chat Success ✅
overlay Success ✅

Comment thread apps/chat/src/components/Chat/ChatInput/ChatInputMessage.tsx Outdated
@Kuznietsov Kuznietsov changed the title feat(chat): Added deleting of quick attachment after its unselection. Issue #7128 feat(chat): Added deleting of attachment from device after its unselection. Issue #7128 Jun 10, 2026
@denys-kolomiitsev denys-kolomiitsev changed the title feat(chat): Added deleting of attachment from device after its unselection. Issue #7128 feat(chat): Added deleting of attachment from device after its unselection (Issue #7128) Jun 10, 2026
@denys-kolomiitsev

denys-kolomiitsev commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

/deploy-review

GitHub actions run: 27276501452

Stage Status
deploy-review Success ✅
overlay Success ✅
chat Success ✅

@denys-kolomiitsev denys-kolomiitsev enabled auto-merge (squash) June 10, 2026 13:37
@denys-kolomiitsev denys-kolomiitsev merged commit 84ec8e7 into epam:development Jun 10, 2026
6 checks passed
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.

2 participants