From ff211ea77ea832754894590950eb76a189b37881 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 21 Jan 2023 20:46:05 +0100 Subject: [PATCH] feat: remove notifications filtering --- components/notification/NotificationPaginator.vue | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/components/notification/NotificationPaginator.vue b/components/notification/NotificationPaginator.vue index 5b3d7a3a..e5bfb701 100644 --- a/components/notification/NotificationPaginator.vue +++ b/components/notification/NotificationPaginator.vue @@ -132,20 +132,7 @@ function preprocess(items: NotificationSlot[]): NotificationSlot[] { } } - // extract indices of notifications with filtered statuses - const isStrict = (filter: mastodon.v1.FilterResult) => filter.filter.filterAction === 'hide' && filter.filter.context.includes('notifications') - const filteredIndices = flattenedNotifications - .map((item, index) => ({ - status: item.status, - index, - })) - .filter(item => !item.status?.filtered?.find(isStrict)) - .map(item => item.index) - - // group the filtered elements given the indices - return groupItems( - flattenedNotifications.filter((item, index) => !filteredIndices.includes(index)), - ) + return groupItems(flattenedNotifications) } const { clearNotifications } = useNotifications()