mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +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],
|
||||
)
|
||||
.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() {
|
||||
|
||||
Reference in New Issue
Block a user