Replace some magic numbers with constants

This commit is contained in:
Alexander Krotov
2019-11-16 13:41:57 +03:00
parent 852b16c972
commit 69e14dcb2d
3 changed files with 7 additions and 7 deletions

View File

@@ -1104,7 +1104,7 @@ pub fn mdn_from_ext(
rfc724_mid: &str,
timestamp_sent: i64,
) -> Option<(u32, MsgId)> {
if from_id <= 9 || rfc724_mid.is_empty() {
if from_id <= DC_MSG_ID_LAST_SPECIAL || rfc724_mid.is_empty() {
return None;
}