rename success to ok_to_continue

This commit is contained in:
jikstra
2019-08-09 19:22:40 +02:00
parent 144858b318
commit ea7da1661b

View File

@@ -786,7 +786,7 @@ pub unsafe fn dc_msg_get_summary<'a>(
msg: *mut dc_msg_t<'a>, msg: *mut dc_msg_t<'a>,
mut chat: *const Chat<'a>, mut chat: *const Chat<'a>,
) -> *mut dc_lot_t { ) -> *mut dc_lot_t {
let mut success = true; let mut ok_to_continue = true;
let ret: *mut dc_lot_t = dc_lot_new(); let ret: *mut dc_lot_t = dc_lot_new();
let mut chat_to_delete: *mut Chat = 0 as *mut Chat; let mut chat_to_delete: *mut Chat = 0 as *mut Chat;
@@ -796,12 +796,12 @@ pub unsafe fn dc_msg_get_summary<'a>(
if chat_to_delete.is_null() { if chat_to_delete.is_null() {
} else { } else {
chat = chat_to_delete; chat = chat_to_delete;
success = false; ok_to_continue = false;
} }
} else { } else {
success = false; ok_to_continue = false;
} }
if success == false { if ok_to_continue == false {
let contact = if (*msg).from_id != DC_CONTACT_ID_SELF as libc::c_uint let contact = if (*msg).from_id != DC_CONTACT_ID_SELF as libc::c_uint
&& ((*chat).type_0 == 120 || (*chat).type_0 == 130) && ((*chat).type_0 == 120 || (*chat).type_0 == 130)
{ {