fix notifications not clearing

This commit is contained in:
Face 2025-07-15 19:11:50 +03:00
parent edca4d5ceb
commit 6956149a3d
4 changed files with 44 additions and 28 deletions

View file

@ -33,9 +33,7 @@
const unreadIds = ($NOTIFICATIONS || []).filter((n) => !n.isRead).map((n) => n.id);
newNotificationIds = unreadIds;
if (unreadIds.length > 0) {
await markNotificationsAsRead(unreadIds);
}
await markNotificationsAsRead();
} catch (error) {
toast.error('Failed to load notifications');
} finally {