add hop info

add hop info creation

Save it to the db

format and fix clippy

replace `and_then` with simple check

cargo fmt

chage table to get info from
This commit is contained in:
Sebastian
2021-07-08 21:24:13 +02:00
parent 57870ec54a
commit 4fa0edcfbf
5 changed files with 67 additions and 4 deletions

View File

@@ -473,6 +473,10 @@ paramsv![]
// this way, the app looks familiar after the contact request upgrade.
info!(context, "[migration] v78");
sql.execute_migration("UPDATE chats SET archived=1 WHERE blocked=2;", 78)
}
if dbversion < 79 {
info!(context, "[migration] v79");
sql.execute_migration("ALTER TABLE msgs ADD COLUMN hop_info TEXT DEFAULT '';", 79)
.await?;
}