Repository navigation
Keep a failed first message as an unsent session; New Session always opens blank - #131
Merged
Merged
Conversation
…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.
Closed
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.shand 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