mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
delete device messages
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
use crate::chat::delete_and_reset_all_device_msgs;
|
||||||
use crate::context::Context;
|
use crate::context::Context;
|
||||||
use crate::e2ee;
|
use crate::e2ee;
|
||||||
use crate::qr::Qr;
|
use crate::qr::Qr;
|
||||||
@@ -194,6 +195,7 @@ pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
|||||||
on_blob,
|
on_blob,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
delete_and_reset_all_device_msgs(context).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,7 +239,7 @@ async fn on_blob(
|
|||||||
.context("cannot import database")?;
|
.context("cannot import database")?;
|
||||||
fs::remove_file(&path)
|
fs::remove_file(&path)
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("Database file: {}", path.display()))?;
|
.with_context(|| format!("database import file: {}", path.display()))?;
|
||||||
}
|
}
|
||||||
Ok(reader)
|
Ok(reader)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user