Replace magic constant with symbolic name

This commit is contained in:
Dmitry Bogatov
2019-10-13 15:11:14 +00:00
committed by Floris Bruynooghe
parent cfe3c69f00
commit 2d0f563dfe

View File

@@ -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,