From 13ff2bd8c403e17816cb2833507cacb85619e238 Mon Sep 17 00:00:00 2001 From: Nico de Haen Date: Sat, 16 Nov 2019 11:28:43 +0100 Subject: [PATCH] Fix wrong indents --- src/message.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/message.rs b/src/message.rs index ea5d9a74c..49f9e6678 100644 --- a/src/message.rs +++ b/src/message.rs @@ -842,10 +842,9 @@ pub fn get_mime_headers(context: &Context, msg_id: MsgId) -> Option { pub fn delete_msgs(context: &Context, msg_ids: &[MsgId]) { for msg_id in msg_ids.iter() { if let Ok(msg) = Message::load_from_db(context, *msg_id) { - if msg.location_id > 0 { - update_location_chat_id(context, msg.location_id, DC_CHAT_ID_TRASH); - } - } else { + if msg.location_id > 0 { + update_location_chat_id(context, msg.location_id, DC_CHAT_ID_TRASH); + } } update_msg_chat_id(context, *msg_id, DC_CHAT_ID_TRASH); job_add(