Skip to content

Commit 7c60ac8

Browse files
committed
feat: MsgId::get_info(): Report original filename as well
1 parent fa9bd7f commit 7c60ac8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/message.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,12 @@ impl MsgId {
328328

329329
if let Some(path) = msg.get_file(context) {
330330
let bytes = get_filebytes(context, &path).await?;
331-
ret += &format!("\nFile: {}, {} bytes\n", path.display(), bytes);
331+
ret += &format!(
332+
"\nFile: {}, name: {}, {} bytes\n",
333+
path.display(),
334+
msg.get_filename().unwrap_or_default(),
335+
bytes
336+
);
332337
}
333338

334339
if msg.viewtype != Viewtype::Text {

0 commit comments

Comments
 (0)