Skip to content

Keep an unsent message as a draft while switching rooms - #283

Merged
monorkin merged 1 commit into
mainfrom
composer-drafts
Sep 26, 2026
Merged

monorkin merged 1 commit into
mainfrom
composer-drafts

Conversation

@monorkin

Copy link
Copy Markdown
Contributor

Hopping between rooms lost whatever was being typed in the composer. The composer now saves the editor content to localStorage on every change, keyed by room, restores it when the room is opened again, and clears it once the message is sent.

The draft is per room, not per user, so two accounts sharing a browser profile would see each other's unsent drafts.

System test covers writing in two rooms, switching between them, sending one, and finding the other still there.

The composer stores what's being written in localStorage per room and
restores it when the room is opened again. Sending clears it.
@monorkin
monorkin merged commit 12249b9 into main Sep 26, 2026
12 checks passed
@monorkin
monorkin deleted the composer-drafts branch September 26, 2026 08:43
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