From 5fb784b995c6c9fa836cc0dff38de558b96e08ab Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Tue, 26 Mar 2024 13:00:25 -0500 Subject: [PATCH] notifications: remove filtering of dms --- ui/src/nav/notifications/useNotifications.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ui/src/nav/notifications/useNotifications.ts b/ui/src/nav/notifications/useNotifications.ts index cc43c4b3..dde152db 100644 --- a/ui/src/nav/notifications/useNotifications.ts +++ b/ui/src/nav/notifications/useNotifications.ts @@ -50,15 +50,10 @@ export const useNotifications = (mentionsOnly = false) => { }; } - const notDmsFromGroupsDesk = (s: Skein) => - !((isDM(s.top.rope) || isClub(s.top.rope)) && isGroups(s.top.rope)); - - const unreads = skeins - .filter((s) => s.unread) - .filter((s) => notDmsFromGroupsDesk(s)); - const filteredSkeins = skeins - .filter((s) => (mentionsOnly ? isMention(s.top) : s)) - .filter((s) => notDmsFromGroupsDesk(s)); + const unreads = skeins.filter((s) => s.unread); + const filteredSkeins = skeins.filter((s) => + mentionsOnly ? isMention(s.top) : s + ); return { notifications: groupSkeinsByDate(filteredSkeins),