bits left over from master merge

This commit is contained in:
Floris Bruynooghe
2023-02-13 15:45:38 +01:00
parent 4c78553d90
commit 852adbe514
3 changed files with 4 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -1233,6 +1233,7 @@ dependencies = [
"pretty_env_logger",
"rusqlite",
"rustyline",
"tempfile",
"tokio 1.25.0",
]

View File

@@ -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]

View File

@@ -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,