From b938d5facd463604ac1c8c43ccaf8e9e7d5b5e19 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 23 Jan 2021 03:39:20 +0300 Subject: [PATCH] add_parts: call get_parent_message only once --- src/dc_receive_imf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index f3e281e87..ad3c35a79 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -525,7 +525,7 @@ async fn add_parts( if Blocked::Not == create_blocked { chat_id.unblock(context).await; chat_id_blocked = Blocked::Not; - } else if get_parent_message(context, mime_parser).await?.is_some() { + } else if parent.is_some() { // we do not want any chat to be created implicitly. Because of the origin-scale-up, // the contact requests will pop up and this should be just fine. Contact::scaleup_origin_by_id(context, from_id, Origin::IncomingReplyTo).await;