mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 15:38:02 +08:00
DEV: Migrate Chat::MessageCreator
to a service (#22390)
Currently, the logic for creating a new chat message is scattered between a controller and an “old” service. This patch address this issue by creating a new service (using the “new” sevice object system) encapsulating all the necessary logic. (authorization, publishing events, etc.)
This commit is contained in: