Skip to content

Keep a failed first message as an unsent session; New Session always opens blank - #131

Merged
Tarquinen merged 2 commits into
devfrom
unsent-sessions
Nov 18, 2026
Merged

Tarquinen merged 2 commits into
devfrom
unsent-sessions

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

A first message that failed before the server created its session was adopted by every New Session draft, so you could never start a new session without retrying or deleting it.

  • New Session always opens blank. A draft restores only its own sends.
  • The failed first message stays on the phone as an unsent session at the top of Recents: a ring while sending, a red mark once it failed. Tapping it reopens it, and a successful Retry turns it into the real session.
  • Edit and Delete show next to Retry under a failed message.

Differs from iOS on purpose (noted in docs/parity). A new draft also no longer turns into a session that another draft created before the app was killed; that session is in the server's list and its message sends when it's opened.

Verified with scripts/check.sh and on the emulator against session-lab: failed send after 5 minutes offline, New Session blank, reopen, Retry once the server was back, Delete.

Before / after

Left: v0.8.0 release. Right: this branch. Recorded on the emulator against session-lab.

before-after.mp4

…opens blank

A first message that failed before the server created its session had no
session to live in, so every New Session draft adopted it and the user could
never start a new session without retrying or deleting it.

- A draft now restores only its own outbox lane (restorePersistedComposer,
  restoringPersistedDraft, restoreFailedSends). A new draft adopts nothing.
  This replaces the iOS behaviour of showing the failed message in the next
  new draft, and a new draft no longer turns into a session another draft
  created (that session is in the server's list).
- Unsent drafts (ComposerPersistence.unsentDrafts, refreshed through
  outboxChanges) lead Recents in the session list: a ring while sending, a red
  exclamation mark once the send failed. Tapping one reopens it; a successful
  Retry turns it into the real session. They can't be held, pinned, muted or
  marked read.
- The failed-send line shows Edit and Delete next to Retry.

Verified: scripts/check.sh on the VM; on the emulator with session-lab, a
send that failed after 5 minutes offline showed in the list, New Session
opened blank, reopening it showed the message, Retry delivered it once the
server was back, and Delete removed it.
Resolved docs/parity/drawer.md: kept dev's rows and re-added the unsent sessions note. scripts/check.sh passes on the VM.
@Tarquinen
Tarquinen merged commit e596754 into dev Nov 18, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — 8582e0ae Deployed Nov 18, 2026 by Tarquinen via check #432
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.

1 participant