mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 09:54:17 +08:00
0a06974a8a
This commit does a couple of things: * Adds the ability to load messages in the chat thread panel when it is open. This just loads the most recent N messages, same as a channel, and does nothing more, no scrolling or anything like that. * Displays the messages in an extremely simple unordered list with no additional features. * Allows posting new messages to the thread, and echoes them into the main channel, but does not respond to any sort of MessageBus events. I've moved messages/clearMessages/addMessages/findMessage code out of the `ChatChannel` model and into a new `ChatMessagesManager` class, which is instantiated in both the `ChatChannel` model and the `ChatThread` model. This allows both to manage messages in the same way via the `TrackedArray` pattern. This is all hidden behind experimental flags, there is no way to make this not completely broken in a single commit. Much more work and refactoring needs to be done first. Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com> |
||
---|---|---|
.. | ||
controllers/chat | ||
helpers/chat | ||
jobs | ||
models | ||
queries/chat | ||
serializers/chat | ||
services | ||
validators/chat | ||
views |