diff --git a/Cargo.lock b/Cargo.lock index 304027515..6073b8ec9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1233,6 +1233,7 @@ dependencies = [ "pretty_env_logger", "rusqlite", "rustyline", + "tempfile", "tokio 1.25.0", ] diff --git a/deltachat-repl/Cargo.toml b/deltachat-repl/Cargo.toml index b6df1f474..87e3c195f 100644 --- a/deltachat-repl/Cargo.toml +++ b/deltachat-repl/Cargo.toml @@ -12,6 +12,7 @@ log = "0.4.16" pretty_env_logger = "0.4" rusqlite = "0.27" rustyline = "10" +tempfile = "3" tokio = { version = "1", features = ["fs", "rt-multi-thread", "macros"] } [features] diff --git a/src/imex/transfer.rs b/src/imex/transfer.rs index df28e07fc..b0741285c 100644 --- a/src/imex/transfer.rs +++ b/src/imex/transfer.rs @@ -219,6 +219,7 @@ impl BackupProvider { }, } }; + // TODO: delete the database? context.emit_event(SendProgress::Completed.into()); context.free_ongoing().await; res @@ -605,7 +606,7 @@ mod tests { // Check that we have the self message. let self_chat = ctx1.get_self_chat().await; - let msgs = get_chat_msgs(&ctx1, self_chat.id, 0).await.unwrap(); + let msgs = get_chat_msgs(&ctx1, self_chat.id).await.unwrap(); assert_eq!(msgs.len(), 1); let msgid = match msgs.get(0).unwrap() { ChatItem::Message { msg_id } => msg_id,