discourse/plugins/chat
Joffrey JAFFEUX db558dc3fc
FIX: correctly sort channels with null last message (#23672)
As per 92839dc722 lastMessage won't be null when a message is deleted. This would cause sorting issues when messages from a direct message channels are deleted as we would try to sort on last message and thought it would exist when actually it would be a null message.

I might rethink this design to not return any last_message in this case soon as checking on ID feels dirty and prone to error, so only fixing the issue for now.

This commit is also using `@cached` to avoid replaying the sort logic on each access.
2023-09-26 20:36:51 +02:00
..
app FIX: ensures we reuse existing thread if existing (#23618) 2023-09-26 10:15:16 +02:00
assets FIX: correctly sort channels with null last message (#23672) 2023-09-26 20:36:51 +02:00
config DEV: removes the notion of staged thread (#23612) 2023-09-15 18:09:45 +02:00
db FEATURE: implements user based sidebar mode (#23078) 2023-08-18 20:33:07 +02:00
lib FEATURE: add outgoing web hooks for Chat messages 2023-09-13 17:31:42 -03:00
public
spec DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
test/javascripts DEV: Modernize chat getOwner usage (#23671) 2023-09-26 18:05:34 +01:00
plugin.rb FEATURE: add outgoing web hooks for Chat messages 2023-09-13 17:31:42 -03:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

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.