mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
Disable debug logging if the webxdc message is deleted
This commit is contained in:
@@ -1281,6 +1281,13 @@ pub async fn delete_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> {
|
|||||||
paramsv![msg.rfc724_mid],
|
paramsv![msg.rfc724_mid],
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
if context.get_config(Config::DebugLogging).await? == Some(msg_id.to_string()) {
|
||||||
|
context
|
||||||
|
.sql
|
||||||
|
.set_raw_config(Config::DebugLogging, Some("0"))
|
||||||
|
.await?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !msg_ids.is_empty() {
|
if !msg_ids.is_empty() {
|
||||||
|
|||||||
Reference in New Issue
Block a user