mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:34:18 +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> |
||
---|---|---|
.. | ||
app | ||
assets | ||
config | ||
db | ||
lib | ||
public | ||
spec | ||
test/javascripts | ||
plugin.rb | ||
README.md |
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.