discourse/plugins/chat/app
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
..
controllers/chat FEATURE: Inline topic summary. Cached version accessible to everyone. (#22551) 2023-07-12 11:21:51 -03:00
helpers/chat FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
jobs FIX: Mark threads read when threading enabled for a channel (#22458) 2023-07-06 16:24:56 +10:00
models DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
policies DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
queries/chat FIX: Better handling of deleted thread original messages (#22402) 2023-07-06 09:47:34 +10:00
serializers/chat DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
services DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
validators/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
views