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
committed by Sebastian Klähn
parent 5e29cae81a
commit d185318f46
5 changed files with 68 additions and 2 deletions

View File

@@ -1067,7 +1067,7 @@ INSERT INTO msgs
txt, subject, txt_raw, param,
bytes, hidden, mime_headers, mime_in_reply_to,
mime_references, mime_modified, error, ephemeral_timer,
ephemeral_timestamp, download_state
ephemeral_timestamp, download_state, hop_info
)
VALUES (
?, ?, ?, ?,
@@ -1156,11 +1156,15 @@ INSERT INTO msgs
part.error.take().unwrap_or_default(),
ephemeral_timer,
ephemeral_timestamp,
<<<<<<< HEAD
if is_partial_download.is_some() {
DownloadState::Available
} else {
DownloadState::Done
},
=======
mime_parser.hop_info
>>>>>>> 4fa0edcf (add hop info)
])?;
let row_id = conn.last_insert_rowid();