From 2d0f563dfeb9dfd559ec7cb50a56050584d8ef58 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 13 Oct 2019 15:11:14 +0000 Subject: [PATCH] Replace magic constant with symbolic name --- src/location.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/location.rs b/src/location.rs index 0ba6cc70a..457aa495b 100644 --- a/src/location.rs +++ b/src/location.rs @@ -197,7 +197,7 @@ pub fn send_locations_to_chat(context: &Context, chat_id: u32, seconds: i64) { let now = time(); let mut msg: Message; let is_sending_locations_before: bool; - if !(seconds < 0 || chat_id <= 9i32 as libc::c_uint) { + if !(seconds < 0 || chat_id <= DC_CHAT_ID_LAST_SPECIAL) { is_sending_locations_before = is_sending_locations_to_chat(context, chat_id); if sql::execute( context,