From fdacf98b69e7f31853606586daeada36ba709430 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 26 Jun 2020 01:10:50 +0300 Subject: [PATCH] handle_mdn: compare from_id to DC_CONTACT_ID_LAST_SPECIAL DC_MSG_ID_LAST_SPECIAL has the same value, but from_id is not a msg id. --- src/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.rs b/src/message.rs index 2936ceaf8..2305518bd 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1293,7 +1293,7 @@ pub async fn handle_mdn( rfc724_mid: &str, timestamp_sent: i64, ) -> Option<(ChatId, MsgId)> { - if from_id <= DC_MSG_ID_LAST_SPECIAL || rfc724_mid.is_empty() { + if from_id <= DC_CONTACT_ID_LAST_SPECIAL || rfc724_mid.is_empty() { return None; }