feat(presence,push) optionally suppress push notifications for active users
This commit is contained in:
committed by
Jason Volk
parent
1be7fd9247
commit
b5a9884194
@@ -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) won’t 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,
|
||||
|
||||
Reference in New Issue
Block a user