discourse/plugins/chat/assets/javascripts
Joffrey JAFFEUX cb257ff658
DEV: allows to add a draft without persisting it (#31457)
On chat setup we get the initial state of drafts for the current users,
we need to add them to the drafts manager, but we don't need to store
them again on the backend.

This commit adds a persist (boolean) parameter to the
`ChatDraftsManager.add` service which when set to true will only add the
draft on the frontend and not send it to the backend.

No test, as the behavior is already tested and unchanged, this is only a
performance improvement.
2025-02-22 01:29:12 +01:00
..
discourse DEV: allows to add a draft without persisting it (#31457) 2025-02-22 01:29:12 +01:00
lib/discourse-markdown DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00