Fix error in message info

This commit is contained in:
Hocuri
2020-06-09 14:32:46 +02:00
parent a30486112f
commit df9cb5e3b8

View File

@@ -942,7 +942,9 @@ pub async fn get_msg_info(context: &Context, msg_id: MsgId) -> String {
ret += "\n";
if let Some(err) = &msg.error {
ret += &format!("Error: {}", err)
if !err.is_empty() {
ret += &format!("Error: {}", err)
}
}
if let Some(path) = msg.get_file(context) {