fixed unread notif counter not updating

This commit is contained in:
ari melody 2025-01-19 22:42:06 +00:00
parent c2d7ae7ec6
commit 866dc935a0
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -7,9 +7,9 @@
if (!$account) goto("/");
getNotifications().then(notif_data => {
if (notif_data && notif_data.constructor === Array) {
last_read_notif_id.set(notif_data[0].id);
getNotifications().then(() => {
if ($notifications.length > 0) {
last_read_notif_id.set($notifications[0].id);
}
unread_notif_count.set(0);
});