fix(msg): correct return value for dc_msg_is_setupmessage

It is broken since 8a0fc609e6
where 0i32 was replaced with true instead of false.
This commit is contained in:
Alexander
2019-07-28 16:33:31 +00:00
committed by Friedel Ziegelmayer
parent 2407604e37
commit 5a8b4748b8

View File

@@ -989,11 +989,7 @@ pub unsafe fn dc_msg_is_setupmessage(msg: *const dc_msg_t) -> bool {
return false;
}
if dc_param_get_int((*msg).param, DC_PARAM_CMD as i32, 0) == 6 {
true
} else {
true
}
dc_param_get_int((*msg).param, DC_PARAM_CMD as i32, 0) == 6
}
pub unsafe fn dc_msg_get_setupcodebegin(msg: *const dc_msg_t) -> *mut libc::c_char {