mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
fix: do not emit events about webxdc update events logged into debug log webxdc
This commit is contained in:
@@ -72,10 +72,12 @@ pub async fn debug_logging_loop(context: &Context, events: Receiver<DebugEventLo
|
|||||||
}
|
}
|
||||||
Ok(serial) => {
|
Ok(serial) => {
|
||||||
if let Some(serial) = serial {
|
if let Some(serial) = serial {
|
||||||
context.emit_event(EventType::WebxdcStatusUpdate {
|
if !matches!(event, EventType::WebxdcStatusUpdate { .. }) {
|
||||||
msg_id,
|
context.emit_event(EventType::WebxdcStatusUpdate {
|
||||||
status_update_serial: serial,
|
msg_id,
|
||||||
});
|
status_update_serial: serial,
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// This should not happen as the update has no `uid`.
|
// This should not happen as the update has no `uid`.
|
||||||
error!(context, "Debug logging update is not created.");
|
error!(context, "Debug logging update is not created.");
|
||||||
|
|||||||
Reference in New Issue
Block a user