Fix notification not showing all

This commit is contained in:
Gregory Schier
2025-03-12 06:41:53 -07:00
parent 0828599e4f
commit be11d5968e
2 changed files with 6 additions and 19 deletions

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(())