discourse/plugins
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
..
chat FIX: correctly sort channels with null last message (#23672) 2023-09-26 20:36:51 +02:00
checklist DEV: Future-proof htmlSafe interactions (#23596) 2023-09-14 23:04:57 +02:00
discourse-details FIX: Hide core plugins from the admin Plugins list (#23328) 2023-08-31 10:01:01 +10:00
discourse-lazy-videos DEV: Remove decorateCookedElement id parameters (#23544) 2023-09-12 16:32:04 +01:00
discourse-local-dates DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
discourse-narrative-bot FIX: Hide core plugins from the admin Plugins list (#23328) 2023-08-31 10:01:01 +10:00
discourse-presence A11Y: disable non-essential CSS animations for reduced-motion users (#23571) 2023-09-14 17:31:43 -04:00
poll DEV: Remove decorateCookedElement id parameters (#23544) 2023-09-12 16:32:04 +01:00
styleguide DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00