discourse/plugins
Andrei Prigorshnev d086888549
DEV: Make chatMessage.cook function async (#21829)
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()
2023-06-01 13:39:32 +04:00
..
chat DEV: Make chatMessage.cook function async (#21829) 2023-06-01 13:39:32 +04:00
discourse-details Update translations (#21583) 2023-05-16 19:40:01 +02:00
discourse-lazy-videos DEV: Fix random typos (#21638) 2023-05-18 15:34:46 +02:00
discourse-local-dates Update translations (#21583) 2023-05-16 19:40:01 +02:00
discourse-narrative-bot Update translations (#21827) 2023-05-31 09:15:16 +02:00
discourse-presence Update translations (#20370) 2023-02-20 11:01:01 +01:00
poll Update translations (#21583) 2023-05-16 19:40:01 +02:00
styleguide Update translations (#21827) 2023-05-31 09:15:16 +02:00