mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
bits left over from master merge
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -1233,6 +1233,7 @@ dependencies = [
|
||||
"pretty_env_logger",
|
||||
"rusqlite",
|
||||
"rustyline",
|
||||
"tempfile",
|
||||
"tokio 1.25.0",
|
||||
]
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user