mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 13:07:19 +08:00

This will make it simpler to work with this code. This also can make this code more stable and increase stability of our test suite. Cooked message now will be available immediately after cooking, it wasn't the case before: await message.cook(); const cooked = message.cooked; This also removes a call to `message.cook()` from message fabricator. Alternatively we may leave the call there and make the fabricator function async, but I fill it's better this way. If someone needs to test something related to cooked message, they can either pass cooked text to fabricator: message = fabricators.message({ cooked: "<p>cooked</p>" }); or call `message.cook()` after fabrication: message = fabricators.message({ message: "raw message" }); await message.cook()
This plugin is still in active development and may change frequently
Documentation
The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.
For user documentation, see Discourse Chat.
For developer documentation, see Discourse Documentation.