From 11d74b32589ba2428d179403a37e0e2d9825709b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 15 Feb 2023 14:49:15 +0800 Subject: [PATCH] Disable grouping for follow requests --- src/pages/notifications.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index 21bf5d8..a4131e2 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -460,7 +460,9 @@ function groupNotifications(notifications) { const date = new Date(createdAt).toLocaleDateString(); const key = `${status?.id}-${type}-${date}`; const mappedNotification = notificationsMap[key]; - if (mappedNotification?.account) { + if (type === 'follow_request') { + cleanNotifications[j++] = notification; + } else if (mappedNotification?.account) { mappedNotification._accounts.push(account); } else { let n = (notificationsMap[key] = {