mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-10 15:05:35 -04:00
calculate new announcements properly
This commit is contained in:
@@ -52,7 +52,8 @@ export function useAnnouncements() {
|
||||
return;
|
||||
}
|
||||
|
||||
newAnnouncements.value = []; // TODO
|
||||
// Return all announcements newer than the last read announcement
|
||||
newAnnouncements.value = allAnnouncements.filter(a => a.key > user.lastReadAnnouncement!);
|
||||
}
|
||||
|
||||
refreshUnreadAnnouncements();
|
||||
|
||||
Reference in New Issue
Block a user