discourse/plugins/chat/spec
Rafael dos Santos Silva 2834cc7955
FIX: Duplicate notifications when mentioned in chat (#39670)
Previously, building the web push "Reply" action payload raised because
`inline_reply.png` lived under `public/images/` where Propshaft can't
resolve it, so `Jobs::Chat::NotifyMentioned` retried after
`create_notification!` and inflated the bell with duplicate rows.

This change moves the icon into `app/assets/images/push-notifications/`
and wraps the action builder in a `rescue` so any future payload failure
logs and returns `{}` instead of stranding the job.

A post-deploy migration sweeps the duplicate `chat_mention`
`Notification` rows (and their `chat_mention_notifications` join
entries) created during the deploy window — keeping the oldest row per
`(user_id, data)` group and merging the read state forward.
2026-04-30 14:52:39 -03:00
..
components/chat FEATURE: separate chat emails from regular emails (#36018) 2025-11-13 16:44:07 +04:00
db/post_migrate FIX: Duplicate notifications when mentioned in chat (#39670) 2026-04-30 14:52:39 -03:00
fabricators FEATURE: Pin chat messages (#37985) 2026-02-23 22:00:16 +01:00
integration DEV: Don't use fab! for non-ActiveRecord model objects (#39272) 2026-04-15 00:52:34 +02:00
jobs FEATURE: Restore web push quick reply for chat messages (#39614) 2026-04-29 12:36:03 -03:00
lib FEATURE: Restore web push quick reply for chat messages (#39614) 2026-04-29 12:36:03 -03:00
mailers FEATURE: better email subject lines (#36040) 2026-04-24 15:14:10 +04:00
models FIX: Escape markdown characters in upload filenames (#39133) 2026-04-14 10:37:41 +02:00
queries/chat PERF: speed up chat channel and thread unread queries (#39398) 2026-04-22 14:57:56 +10:00
requests DEV: Drop obsolete chat controller specs (#39525) 2026-04-24 15:12:40 +02:00
serializer DEV: Don't use fab! for non-ActiveRecord model objects (#39272) 2026-04-15 00:52:34 +02:00
services SECURITY: Harden chat DM channel creation and expansion 2026-03-31 15:12:45 +01:00
support FEATURE: Pin chat messages (#37985) 2026-02-23 22:00:16 +01:00
system DEV: Make visit() wait for the app to boot (#39659) 2026-04-30 17:33:57 +02:00
validators FEATURE: Add setting to prevent anonymous users from using chat (#31842) 2025-03-21 13:32:52 +03:00
plugin_helper.rb FIX: Chat::UpdateMessage is not scoped to route channel_id (#37873) 2026-02-18 09:20:18 +10:00
plugin_spec.rb FIX: show chat DM button when personal messages are restricted (#37920) 2026-02-19 12:37:25 +01:00