Skip to content

iOS: declined-drop card stays on the composer after the drag ends #951

Closed

Description

@ivanfenenko

On iOS, after an item is declined while dragging onto the Session Chat composer, the "Can't attach this" card stays on screen after the drag ends. It only goes away on the next drag.

Found while checking drag and drop with a pointer for #869. The drop feature itself comes from #870.

Steps

  1. Use a model that accepts file attachments but not images.
  2. Drag an image onto the Session Chat composer: the card shows "Can't attach this · This model does not support image attachments".
  3. Release, or drag back out.

Expected: the card disappears. Actual: it stays.

Notes

  • SwiftUI's drop delegate does not report the end of a drag it declined, and declining another way did not help.
  • onDropSessionUpdated, which reports when a drag ends, needs iOS 26; the app supports iOS 17.5.
  • Likely fix: handle the drop through UIKit (UIDropInteraction), which reports when a drag ends.
  • Check Android for parity; it was not seen there.

Activity

  1. added
    bug
    ios
    on Nov 2, 2026
  2. added 3 commits that reference this issue on Nov 2, 2026
  3. added 2 commits that reference this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions