discourse/plugins/chat/spec/models/chat
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
..
category_channel_spec.rb
channel_spec.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
deleted_chat_user_spec.rb DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
direct_message_channel_spec.rb
direct_message_spec.rb
draft_spec.rb
message_spec.rb FIX: Add aria-label attribute to cooked hashtags (#22182) 2023-06-20 15:47:17 +10:00
reviewable_chat_message_spec.rb
thread_spec.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
user_chat_thread_membership_spec.rb DEV: Create UserChatThreadMembership table and model (#21481) 2023-05-10 17:19:48 +02:00