discourse/plugins/chat/spec/integration
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
..
auto_channel_user_removal_spec.rb FEATURE: Auto-remove users without permission from channel (#20344) 2023-03-22 10:19:59 +10:00
custom_api_key_scopes_spec.rb DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_api_spec.rb
post_chat_quote_spec.rb DEV: Update chat cooked quote spec (#22202) 2023-06-20 10:30:33 +08:00
thread_replies_count_cache_accuracy_spec.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00