discourse/plugins/chat/spec
Martin Brennan a8cf8e57b4
FIX: Do not count thread messages for channel unreads (#21126)
We currently don't have a nice UI to show unread messages for the thread,
and it will take some time to create one. For now, this commit makes it so
new messages inside a thread do not count towards a chat channel's unread
counts, and new messages sent in a thread do not update a user's `last_read_message_id`
for a channel.

In addition, this PR refactors the `Chat::ChannelFetcher` to use the `Chat::ChannelUnreadsQuery`
query class for consistency, and made said class able to return zeroed-out records
for channels the user is not a member of.

Finally, a small bug is fixed here where if a user's `last_read_message_id` for
a channel was a thread's OM ID, then the thread OM would not show in the
main channel stream for them until another reply to the channel was posted.
2023-04-19 08:53:51 +10:00
..
components/chat FEATURE: Initial chat thread indicator and disabling echo mode in channels (#21047) 2023-04-12 11:09:06 +10:00
fabricators DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
integration FEATURE: Better thread reply counter cache (#21108) 2023-04-18 14:01:01 +10:00
jobs FEATURE: Better thread reply counter cache (#21108) 2023-04-18 14:01:01 +10:00
lib FIX: Do not count thread messages for channel unreads (#21126) 2023-04-19 08:53:51 +10:00
mailers DEV: Skip channel-wide mention chat specs (#20770) 2023-03-22 12:44:01 +10:00
models FEATURE: Better thread reply counter cache (#21108) 2023-04-18 14:01:01 +10:00
queries/chat FIX: Do not count thread messages for channel unreads (#21126) 2023-04-19 08:53:51 +10:00
requests FIX: Do not count thread messages for channel unreads (#21126) 2023-04-19 08:53:51 +10:00
serializer FIX: Do not serialize thread data if threading disabled (#21107) 2023-04-17 14:29:06 +10:00
services FIX: Do not count thread messages for channel unreads (#21126) 2023-04-19 08:53:51 +10:00
support DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
system FIX: Do not count thread messages for channel unreads (#21126) 2023-04-19 08:53:51 +10:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: Reacting to MessageBus in chat thread panel (#21070) 2023-04-13 14:45:50 +02:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00