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

@@ -1288,6 +1288,18 @@ pub struct Config {
#[serde(default = "true_fn")]
pub presence_timeout_remote_users: bool,
/// Suppresses push notifications for users marked as active.
///
/// when enabled, users with `Online` presence and recent activity
/// (based on presence state and sync activity) wont receive push
/// notifications, reducing duplicate alerts while they're active
/// elsewhere.
///
/// Disabled by default to preserve legacy behavior.
#[serde(default)]
pub suppress_push_when_active: bool,
/// Allow receiving incoming read receipts from remote servers.
#[serde(default = "true_fn")]
pub allow_incoming_read_receipts: bool,