# Save draft of chat message

**URL:** https://meta.discourse.org/t/save-draft-of-chat-message/210509
**Category:** Feature
**Tags:** chat
**Created:** [November 30, 2021, 3:11pm UTC](https://meta.discourse.org/t/save-draft-of-chat-message/210509 "2021-11-30T15:11:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![oshyan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oshyan/32/212644_2.png) [@oshyan](https://meta.discourse.org/u/oshyan)
#### Post date: [November 30, 2021, 3:11pm UTC](https://meta.discourse.org/t/save-draft-of-chat-message/210509/1 "2021-11-30T15:11:54Z")

</div>

Requesting drafts for chat as well (auto-save anything typed in chat message composer). Slack does this, and Discourse is already really good with drafts. It should either just transparently save and then show a “drafts 1” message on the channel or something (in sidebar or other channel list), or at least it should just prompt the user not to navigate away without sending anything they’ve typed or it will be lost. Since Discourse already does drafts well, I’d vote for the first option and have chat also have draft functionality.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [November 30, 2021, 3:17pm UTC](https://meta.discourse.org/t/save-draft-of-chat-message/210509/2 "2021-11-30T15:17:02Z")

</div>

Agreed. Can we get most of this for free through our existing drafts system @markvanlan ?

Though not a requirement for drafts in chat, if we’re gonna dive into it anyhow, I would love to revisit the ability to make multiple topic drafts [(1)](https://meta.discourse.org/t/cant-have-multiple-new-topic-drafts/194427/) [(2)](https://meta.discourse.org/t/creating-multiple-drafts-for-publishing-later/50697). We have a dedicated space for it already anyhow:

 ![Screenshot 2021-11-30 at 16.16.40](https://global.discourse-cdn.com/meta/original/3X/9/3/93a87e43e8b9e47d045be3375cd5aff2a3ab7bb7.png)

---

<div class="post-metadata">

### Author: ![markvanlan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markvanlan/32/160087_2.png) [@markvanlan](https://meta.discourse.org/u/markvanlan)
#### Post date: [November 30, 2021, 3:21pm UTC](https://meta.discourse.org/t/save-draft-of-chat-message/210509/3 "2021-11-30T15:21:47Z")

</div>

I don’t think we can use the existing draft system unfortunately. A really simple version of this would be local drafts; they aren’t stored on the server but your browser stores a draft for each channel. Would you like to start there, or just go full-blown persistent drafts from the start?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [November 30, 2021, 3:27pm UTC](https://meta.discourse.org/t/save-draft-of-chat-message/210509/4 "2021-11-30T15:27:11Z")

</div>

Local storage will suffice to start with 👍

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 12, 2022, 11:46am UTC](https://meta.discourse.org/t/save-draft-of-chat-message/210509/6 "2022-05-12T11:46:07Z")

</div>

We have basic support for drafts now
