discourse/plugins/chat/spec
Martin Brennan b1978e7ad8
DEV: Add last_message_id to channel and thread (#22488)
Initial migration and changes to models as well as
changing the following services to update last_message_id:

* Chat::MessageCreator
* Chat::RestoreMessage
* Chat::TrashMessage

The data migration will set the `last_message_id` for all existing
threads and channels in the database.

When we query the thread list as well as the channel,
we look at the last message ID for the following:

* Channel - Sorting DM channels, and channel metadata for the list of channels
* Thread - Last reply details for thread indicators and thread list
2023-07-13 10:28:11 +10:00
..
components/chat DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
fabricators DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
integration DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
jobs FIX: Mark threads read when threading enabled for a channel (#22458) 2023-07-06 16:24:56 +10:00
lib DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
queries/chat FIX: Better handling of deleted thread original messages (#22402) 2023-07-06 09:47:34 +10:00
requests FEATURE: new jump to channel menu (#22383) 2023-07-05 18:18:27 +02:00
serializer DEV: fixes flakey due to unordered array (#22515) 2023-07-10 17:26:29 +02:00
services DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
support DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
system DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
plugin_spec.rb DEV: Move user count update for channels to ensure_consistency! (#22321) 2023-07-03 11:41:51 +10:00