fixed unread notif counter not updating
This commit is contained in:
parent
c2d7ae7ec6
commit
866dc935a0
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
if (!$account) goto("/");
|
if (!$account) goto("/");
|
||||||
|
|
||||||
getNotifications().then(notif_data => {
|
getNotifications().then(() => {
|
||||||
if (notif_data && notif_data.constructor === Array) {
|
if ($notifications.length > 0) {
|
||||||
last_read_notif_id.set(notif_data[0].id);
|
last_read_notif_id.set($notifications[0].id);
|
||||||
}
|
}
|
||||||
unread_notif_count.set(0);
|
unread_notif_count.set(0);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue