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

This commit is contained in:
iequidoo
2024-10-03 15:49:03 -03:00
committed by iequidoo
parent fa9bd7f144
commit 7c60ac863e
+6 -1
View File
@@ -328,7 +328,12 @@ impl MsgId {
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 {