feat(presence,push) optionally suppress push notifications for active users

This commit is contained in:
tototomate123
2025-09-02 14:26:12 +02:00
committed by Jason Volk
parent 1be7fd9247
commit b5a9884194
5 changed files with 67 additions and 4 deletions

View File

@@ -133,6 +133,9 @@ pub(crate) async fn sync_events_route(
.await
.log_err()
.ok();
// Record that this user was actively syncing now (for push suppression heuristic)
services.presence.note_sync(sender_user).await;
}
let mut since = body