From fb5d53226dfd1c5a68e8274fb682782e1097f37b Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 1 Sep 2019 22:45:49 +0000 Subject: [PATCH] Fix errorneous ffi check in dc_send_msg --- deltachat-ffi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index fa768badd..deaa39840 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -498,7 +498,7 @@ pub unsafe extern "C" fn dc_send_msg( chat_id: u32, msg: *mut dc_msg_t, ) -> 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()"); return 0; }