From 8af64ee30627e00daf7a333ee8d8e293b3f2a017 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 10 Oct 2026 08:38:23 -0400 Subject: [PATCH] feat: Notify users when added to or removed from a group (#13999) * feat: Notify users when added to or removed from a group * Replace unread group membership notifications on change, link removals to group --- .../Notifications/NotificationListItem.tsx | 2 +- app/models/Notification.ts | 42 +++- app/scenes/Settings/Notifications.tsx | 8 + server/commands/groupsSyncer.test.ts | 11 + server/commands/groupsSyncer.ts | 14 +- server/models/Notification.ts | 4 + server/presenters/notification.ts | 5 + .../processors/NotificationsProcessor.test.ts | 52 ++++ .../processors/NotificationsProcessor.ts | 15 ++ .../tasks/GroupUserNotificationsTask.test.ts | 234 ++++++++++++++++++ .../tasks/GroupUserNotificationsTask.ts | 90 +++++++ shared/i18n/locales/en_US/translation.json | 8 +- shared/types.ts | 4 + 13 files changed, 475 insertions(+), 14 deletions(-) create mode 100644 server/queues/processors/NotificationsProcessor.test.ts create mode 100644 server/queues/tasks/GroupUserNotificationsTask.test.ts create mode 100644 server/queues/tasks/GroupUserNotificationsTask.ts diff --git a/app/components/Notifications/NotificationListItem.tsx b/app/components/Notifications/NotificationListItem.tsx index 657a224843..7e6b09d534 100644 --- a/app/components/Notifications/NotificationListItem.tsx +++ b/app/components/Notifications/NotificationListItem.tsx @@ -80,7 +80,7 @@ function NotificationListItem({ notification, onNavigate }: Props) { {notification.actor?.name ?? t("Unknown")} {" "} {notification.eventText(t)}{" "} - {notification.subject} + {notification.subject(t)}