Fix notification not showing all

This commit is contained in:
Gregory Schier committed 2025-03-12 06:41:53 -07:00
1 parent 0828599e4f
commit be11d5968e
2 files changed
+6 -19

No files matched your search

+2 -1
View File
@@ -93,11 +93,12 @@ impl YaakNotifier {
let seen = get_kv(window).await?;
if seen.contains(&notification.id) || (age > Duration::days(2)) {
debug!("Already seen notification {}", notification.id);
return Ok(());
continue;
}
debug!("Got notification {:?}", notification);
let _ = window.emit_to(window.label(), "notification", notification.clone());
break; // Only show one notification
}
Ok(())