fix issues with auth (#1247)

This commit is contained in:
Geometrically
2023-08-01 15:34:29 -07:00
committed by GitHub
parent e2fb8827a7
commit 04915cc65a
7 changed files with 24 additions and 8 deletions

View File

@@ -126,6 +126,11 @@ export async function fetchNotifications() {
export function groupNotifications(notifications, includeRead = false) {
const grouped = []
for (const notification of notifications) {
notification.grouped_notifs = []
}
for (const notification of notifications.filter((notif) => includeRead || !notif.read)) {
// Group notifications of the same thread or project id
if (notification.body) {