Use DC_MSG_ID_LAST_SPECIAL in dc_continue_key_transfer

This commit is contained in:
Alexander Krotov
2019-09-25 02:04:22 +03:00
committed by holger krekel
parent 60bd053095
commit b93550f6c8

View File

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