mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
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:
committed by
Friedel Ziegelmayer
parent
2407604e37
commit
5a8b4748b8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user