mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
Fix errorneous ffi check in dc_send_msg
This commit is contained in:
@@ -498,7 +498,7 @@ pub unsafe extern "C" fn dc_send_msg(
|
|||||||
chat_id: u32,
|
chat_id: u32,
|
||||||
msg: *mut dc_msg_t,
|
msg: *mut dc_msg_t,
|
||||||
) -> u32 {
|
) -> u32 {
|
||||||
if context.is_null() || chat_id == 0 || msg.is_null() {
|
if context.is_null() || msg.is_null() {
|
||||||
eprintln!("ignoring careless call to dc_send_msg()");
|
eprintln!("ignoring careless call to dc_send_msg()");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user