Disable grouping for follow requests

pull/54/head
Lim Chee Aun 2023-02-15 14:49:15 +08:00
rodzic f9794c1cd5
commit 11d74b3258
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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