Keep an unsent message as a draft while switching rooms

The composer stores what's being written in localStorage per room and
restores it when the room is opened again. Sending clears it.
This commit is contained in:
Stanko K.R.
2026-09-26 10:38:13 +02:00
parent 8fa6138fb9
commit 5c5821a395
3 changed files with 46 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
"permitted-attachment-types": "application/vnd.campfire.mention application/vnd.actiontext.opengraph-embed",
data: {
controller: "unfurl",
action: "#{rich_text_data_actions} lexxy:insert-link->unfurl#unfurl",
action: "#{rich_text_data_actions} lexxy:change->composer#saveDraft lexxy:insert-link->unfurl#unfurl",
composer_target: "text" } do %>
<%= mention_prompt_tag room %>
<% end %>