mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix: imex::import_backup: Ignore errors from delete_and_reset_all_device_msgs()
They are not a good reason to fail the whole import. Anyway `delete_and_reset_all_device_msgs()` isn't retried after restarting the program.
This commit is contained in:
@@ -383,7 +383,10 @@ async fn import_backup_stream_inner<R: tokio::io::AsyncRead + Unpin>(
|
||||
res = context.sql.run_migrations(context).await;
|
||||
}
|
||||
if res.is_ok() {
|
||||
res = delete_and_reset_all_device_msgs(context).await;
|
||||
delete_and_reset_all_device_msgs(context)
|
||||
.await
|
||||
.log_err(context)
|
||||
.ok();
|
||||
}
|
||||
(res,)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user