Skip to content

fix: prevent duplicate attachment sends - #1977

Open
Ap4sh wants to merge 1 commit into
session-foundation:devfrom
Ap4sh:fix-prevent-duplicate-attachment-send
Open

fix: prevent duplicate attachment sends#1977
Ap4sh wants to merge 1 commit into
session-foundation:devfrom
Ap4sh:fix-prevent-duplicate-attachment-send

Conversation

@Ap4sh

@Ap4sh Ap4sh commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Contributor checklist:

Description

Fixes #336

This picks up the approach proposed in oxen-io/session-desktop#3100, which was never merged, and adds focused regression coverage

Repeated Enter presses or send button clicks are now ignored while the current send is still processing attachments

The guard always releases after success or failure, so retrying still works

Tests:

  • added coverage for concurrent sends and guard release after success or failure
  • pnpm ready

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.

[BUG] images sometimes sent twice

1 participant