discourse/plugins/chat/app
Martin Brennan 0a06974a8a
DEV: Rough chat message loading and posting in thread (#20579)
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>
2023-03-21 15:29:10 +10:00
..
controllers/chat DEV: Rough chat message loading and posting in thread (#20579) 2023-03-21 15:29:10 +10:00
helpers/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
jobs DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
models DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
queries/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
serializers/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
services DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
validators/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
views