message.rs: resolve "should return bool" TODOs

This commit is contained in:
Alexander Krotov
2019-09-12 12:50:08 +03:00
parent 0f67b16f29
commit fad49e08d7
6 changed files with 21 additions and 46 deletions

View File

@@ -168,7 +168,7 @@ pub unsafe fn dc_initiate_key_transfer(context: &Context) -> *mut libc::c_char {
}
std::thread::sleep(std::time::Duration::from_secs(1));
if let Ok(msg) = dc_get_msg(context, msg_id) {
if 0 != dc_msg_is_sent(&msg) {
if dc_msg_is_sent(&msg) {
info!(context, "... setup message sent.",);
break;
}