mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
This commit attempts to correctly change draft when the channel changes. It moves responsibility to the composer instead of the channel. A new service `chatDraftsManager` is being introduced here to allow finer control and pave the way for future thread draft support. These changes also now allow an editing message to be stored as a draft.