mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
legacy (.bak) import: If backup files can't be opened, just try one that couldn't be opened
fix https://github.com/deltachat/deltachat-android/issues/1768
This commit is contained in:
@@ -514,6 +514,7 @@ pub(crate) async fn get_next_backup_path(
|
||||
) -> Result<(PathBuf, PathBuf), Error> {
|
||||
let folder = PathBuf::from(folder.as_ref());
|
||||
let stem = chrono::NaiveDateTime::from_timestamp(backup_time, 0)
|
||||
// Don't change this file name format, in has_backup() we use string comparison to determine which backup is newer:
|
||||
.format("delta-chat-backup-%Y-%m-%d")
|
||||
.to_string();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user