mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix problems
This commit is contained in:
@@ -343,7 +343,6 @@ impl Context {
|
||||
self.sql.set_raw_config(key, value).await?;
|
||||
self.debug_logging.store(0, atomic::Ordering::Relaxed);
|
||||
} else {
|
||||
|
||||
// the unbundled version lives at https://github.com/webxdc/webxdc_logging
|
||||
let data: &[u8] = include_bytes!("../assets/webxdc_logging.xdc");
|
||||
|
||||
|
||||
@@ -467,6 +467,7 @@ impl Context {
|
||||
payload: event.to_json(Some(time)),
|
||||
info: None,
|
||||
summary: None,
|
||||
document: None,
|
||||
},
|
||||
)
|
||||
.await
|
||||
|
||||
@@ -124,7 +124,7 @@ pub(crate) struct StatusUpdateItem {
|
||||
pub(crate) info: Option<String>,
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
document: Option<String>,
|
||||
pub(crate) document: Option<String>,
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub(crate) summary: Option<String>,
|
||||
@@ -323,11 +323,6 @@ impl Context {
|
||||
self.emit_msgs_changed(instance.chat_id, instance.id);
|
||||
}
|
||||
|
||||
let rowid = self.sql.insert(
|
||||
"INSERT INTO msgs_status_updates (msg_id, update_item) VALUES(?, ?);",
|
||||
paramsv![instance.id, serde_json::to_string(&status_update_item)?],
|
||||
).await?;
|
||||
|
||||
let status_update_serial = self
|
||||
.internal_write_status_update(&instance.id, status_update_item)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user