cleaned up notifications functionality, fixed infinite scroll loop

This commit is contained in:
ari melody 2024-07-08 11:07:11 +01:00
parent 956e67566b
commit 6e2e4e0c23
Signed by: ari
GPG key ID: CF99829C92678188
4 changed files with 17 additions and 16 deletions

View file

@ -9,7 +9,7 @@
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { createEventDispatcher } from 'svelte';
import { unread_notif_count } from '$lib/notifications.js';
import { notifications, unread_notif_count } from '$lib/notifications.js';
import Logo from '$lib/../img/campfire-logo.svg';
import Button from './Button.svelte';
@ -40,7 +40,8 @@
break;
case "notifications":
route = "/notifications";
getNotifications(true);
notifications.set([]);
getNotifications();
break;
case "explore":
case "lists":