feat: MsgId::get_info(): Report original filename as well

This commit is contained in:
iequidoo
2024-04-27 01:02:31 -03:00
parent ed33f30a60
commit 7391c8ddea

View File

@@ -304,7 +304,12 @@ WHERE id=?;
if let Some(path) = msg.get_file(context) {
let bytes = get_filebytes(context, &path).await?;
ret += &format!("\nFile: {}, {} bytes\n", path.display(), bytes);
ret += &format!(
"\nFile: {}, name: {}, {} bytes\n",
path.display(),
msg.get_filename().unwrap_or_default(),
bytes
);
}
if msg.viewtype != Viewtype::Text {