Tweak message size placeholder and notifications

This commit is contained in:
Gregory Schier
2026-06-30 09:44:11 -07:00
parent bbdfbcb9ca
commit 420c6e2c4a
3 changed files with 13 additions and 6 deletions
@@ -79,7 +79,7 @@ impl YaakNotifier {
return Ok(());
}
debug!("Checking for notifications");
info!("Checking for notifications");
#[cfg(feature = "license")]
let license_check = {
@@ -115,17 +115,20 @@ impl YaakNotifier {
]);
let resp = req.send().await?;
if resp.status() != 200 {
debug!("Skipping notification status code {}", resp.status());
info!("Skipping notification status code {}", resp.status());
return Ok(());
}
for notification in resp.json::<Vec<YaakNotification>>().await? {
let notifications = resp.json::<Vec<YaakNotification>>().await?;
debug!("Received {} notifications", notifications.len());
for notification in notifications {
let seen = get_kv(app_handle).await?;
if seen.contains(&notification.id) {
debug!("Already seen notification {}", notification.id);
continue;
}
debug!("Got notification {:?}", notification);
info!("Got notification {:?}", notification);
let _ = app_handle.emit_to(window.label(), "notification", notification.clone());
break; // Only show one notification