cargo fmt

This commit is contained in:
Simon Laux
2019-08-08 00:35:27 +02:00
committed by holger krekel
parent 125df968d2
commit b2a2791f6f

View File

@@ -800,15 +800,15 @@ pub unsafe fn dc_msg_get_summary<'a>(
} }
} }
if ok_to_continue { if ok_to_continue {
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)
{ {
Contact::get_by_id((*chat).context, (*msg).from_id).ok() Contact::get_by_id((*chat).context, (*msg).from_id).ok()
} else { } else {
None None
}; };
dc_lot_fill(ret, msg, chat, contact.as_ref(), (*msg).context); dc_lot_fill(ret, msg, chat, contact.as_ref(), (*msg).context);
} }
} }