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.
This commit is contained in:
Alexander Krotov
2020-06-26 01:10:50 +03:00
parent 9152f93a46
commit fdacf98b69

View File

@@ -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;
}