mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
accept notify addresses
This commit is contained in:
@@ -4529,7 +4529,8 @@ pub(crate) async fn add_info_msg_with_cmd(
|
|||||||
parent,
|
parent,
|
||||||
from_id,
|
from_id,
|
||||||
false,
|
false,
|
||||||
).await
|
)
|
||||||
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Adds an informational message to chat, optionally showing a notification for important messages.
|
/// Adds an informational message to chat, optionally showing a notification for important messages.
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ pub async fn debug_logging_loop(context: &Context, events: Receiver<DebugEventLo
|
|||||||
summary: None,
|
summary: None,
|
||||||
document: None,
|
document: None,
|
||||||
uid: None,
|
uid: None,
|
||||||
|
notify: None,
|
||||||
},
|
},
|
||||||
time,
|
time,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -177,6 +177,10 @@ pub struct StatusUpdateItem {
|
|||||||
/// If there is no ID, message is always considered to be unique.
|
/// If there is no ID, message is always considered to be unique.
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub uid: Option<String>,
|
pub uid: Option<String>,
|
||||||
|
|
||||||
|
/// Array of Addr that should be notified about this update.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub notify: Option<Vec<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Update items as passed to the UIs.
|
/// Update items as passed to the UIs.
|
||||||
@@ -1423,6 +1427,7 @@ mod tests {
|
|||||||
document: None,
|
document: None,
|
||||||
summary: None,
|
summary: None,
|
||||||
uid: Some("iecie2Ze".to_string()),
|
uid: Some("iecie2Ze".to_string()),
|
||||||
|
notify: None,
|
||||||
},
|
},
|
||||||
1640178619,
|
1640178619,
|
||||||
true,
|
true,
|
||||||
@@ -1447,6 +1452,7 @@ mod tests {
|
|||||||
document: None,
|
document: None,
|
||||||
summary: None,
|
summary: None,
|
||||||
uid: Some("iecie2Ze".to_string()),
|
uid: Some("iecie2Ze".to_string()),
|
||||||
|
notify: None,
|
||||||
},
|
},
|
||||||
1640178619,
|
1640178619,
|
||||||
true,
|
true,
|
||||||
@@ -1480,6 +1486,7 @@ mod tests {
|
|||||||
document: None,
|
document: None,
|
||||||
summary: None,
|
summary: None,
|
||||||
uid: None,
|
uid: None,
|
||||||
|
notify: None,
|
||||||
},
|
},
|
||||||
1640178619,
|
1640178619,
|
||||||
true,
|
true,
|
||||||
@@ -1499,6 +1506,7 @@ mod tests {
|
|||||||
document: None,
|
document: None,
|
||||||
summary: None,
|
summary: None,
|
||||||
uid: None,
|
uid: None,
|
||||||
|
notify: None,
|
||||||
},
|
},
|
||||||
1640178619,
|
1640178619,
|
||||||
true,
|
true,
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ pub(crate) async fn intercept_get_updates(
|
|||||||
document: None,
|
document: None,
|
||||||
summary: None,
|
summary: None,
|
||||||
uid: None,
|
uid: None,
|
||||||
|
notify: None,
|
||||||
},
|
},
|
||||||
serial: StatusUpdateSerial(location.location_id),
|
serial: StatusUpdateSerial(location.location_id),
|
||||||
max_serial: StatusUpdateSerial(location.location_id),
|
max_serial: StatusUpdateSerial(location.location_id),
|
||||||
|
|||||||
Reference in New Issue
Block a user