diff --git a/src/chat.rs b/src/chat.rs index 2a67d3156..73bda09a9 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -4529,7 +4529,8 @@ pub(crate) async fn add_info_msg_with_cmd( parent, from_id, false, - ).await + ) + .await } /// Adds an informational message to chat, optionally showing a notification for important messages. diff --git a/src/debug_logging.rs b/src/debug_logging.rs index 766a39675..36f5623b0 100644 --- a/src/debug_logging.rs +++ b/src/debug_logging.rs @@ -63,6 +63,7 @@ pub async fn debug_logging_loop(context: &Context, events: Receiver, + + /// Array of Addr that should be notified about this update. + #[serde(skip_serializing_if = "Option::is_none")] + pub notify: Option>, } /// Update items as passed to the UIs. @@ -1423,6 +1427,7 @@ mod tests { document: None, summary: None, uid: Some("iecie2Ze".to_string()), + notify: None, }, 1640178619, true, @@ -1447,6 +1452,7 @@ mod tests { document: None, summary: None, uid: Some("iecie2Ze".to_string()), + notify: None, }, 1640178619, true, @@ -1480,6 +1486,7 @@ mod tests { document: None, summary: None, uid: None, + notify: None, }, 1640178619, true, @@ -1499,6 +1506,7 @@ mod tests { document: None, summary: None, uid: None, + notify: None, }, 1640178619, true, diff --git a/src/webxdc/maps_integration.rs b/src/webxdc/maps_integration.rs index 4209d8710..a69a2cf4e 100644 --- a/src/webxdc/maps_integration.rs +++ b/src/webxdc/maps_integration.rs @@ -149,6 +149,7 @@ pub(crate) async fn intercept_get_updates( document: None, summary: None, uid: None, + notify: None, }, serial: StatusUpdateSerial(location.location_id), max_serial: StatusUpdateSerial(location.location_id),