From b93550f6c8b0c6524a273bee34cf946c600abac7 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 25 Sep 2019 02:04:22 +0300 Subject: [PATCH] Use DC_MSG_ID_LAST_SPECIAL in dc_continue_key_transfer --- src/dc_imex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dc_imex.rs b/src/dc_imex.rs index cabbd9b1d..96c6f2c3e 100644 --- a/src/dc_imex.rs +++ b/src/dc_imex.rs @@ -254,7 +254,7 @@ pub fn dc_create_setup_code(_context: &Context) -> String { } pub unsafe fn dc_continue_key_transfer(context: &Context, msg_id: u32, setup_code: &str) -> bool { - if msg_id <= 9i32 as libc::c_uint { + if msg_id <= DC_MSG_ID_LAST_SPECIAL { return false; }