1
0
Fork 0

Disable grouping for follow requests

This commit is contained in:
Lim Chee Aun 2023-02-15 14:49:15 +08:00
parent f9794c1cd5
commit 11d74b3258

View file

@ -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] = {