discourse/plugins/chat/spec
David Battersby 67d568f709
FIX: stuck notification for mentions within threads (#30546)
For mentions within threads, the mentioned user can experience a stuck notification. This is due to thread memberships only being created for users who interact with a thread. Without the membership we cannot track if the message containing the mention was read by the user.

The solution to this explored in this PR is:

- auto add memberships for mentioned users (only direct mentions for performance reasons).
- update channel/thread unread queries to check notification read status AND thread membership last read message id when counting mentions.

Previously the mention count would remain until the user notification (containing the mention) was read. However this only happens if the user clicks the notification or clicks dismiss all notifications. When a user navigated to the thread without clicking the notification, the green/urgent badge on chat would remain even after a hard page refresh.
2025-01-06 17:26:37 +04:00
..
components/chat PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
fabricators DEV: Display better output when inspecting service steps 2024-12-12 15:21:10 +01:00
integration PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01:00
jobs PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
lib DEV: Update rubocop-discourse (#30552) 2025-01-04 13:48:21 +01:00
mailers FIX: show group based notifications in chat summary email (#27641) 2024-07-01 12:47:38 +04:00
models FIX: stuck notification for mentions within threads (#30546) 2025-01-06 17:26:37 +04:00
queries/chat FIX: stuck notification for mentions within threads (#30546) 2025-01-06 17:26:37 +04:00
requests DEV: Update rubocop-discourse (#30552) 2025-01-04 13:48:21 +01:00
serializer Build(deps-dev): Bump mocha from 2.6.1 to 2.7.1 (#30189) 2025-01-06 12:33:05 +01:00
services DEV: Update rubocop-discourse (#30552) 2025-01-04 13:48:21 +01:00
support FIX: serializes interaction for direct messages (#29844) 2024-11-20 11:26:12 +01:00
system UX: replace partially written emoji when using picker on chat (#30517) 2025-01-02 12:29:18 -03:00
validators FIX: Remove chat default channel setting (#28170) 2024-07-31 14:12:10 -03:00
plugin_helper.rb DEV: Display better output when inspecting service steps 2024-12-12 15:21:10 +01:00
plugin_spec.rb PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00