mirror of
https://github.com/discourse/discourse.git
synced 2025-03-13 01:05:48 +08: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.