mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06:29 +03:00
Resultify Contact::lookup_id_by_addr
Using a Contact ID as an error type is risky and a C leftover.
This commit is contained in:
@@ -1539,6 +1539,9 @@ pub unsafe extern "C" fn dc_lookup_contact_id_by_addr(
|
||||
to_string_lossy(addr),
|
||||
Origin::IncomingReplyTo,
|
||||
))
|
||||
.ok()
|
||||
.flatten()
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user