mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix ffi
This commit is contained in:
@@ -1320,12 +1320,12 @@ pub unsafe extern "C" fn dc_get_securejoin_qr(
|
|||||||
) -> *mut libc::c_char {
|
) -> *mut libc::c_char {
|
||||||
if context.is_null() {
|
if context.is_null() {
|
||||||
eprintln!("ignoring careless call to dc_get_securejoin_qr()");
|
eprintln!("ignoring careless call to dc_get_securejoin_qr()");
|
||||||
"".strdup()
|
return "".strdup();
|
||||||
}
|
}
|
||||||
|
|
||||||
let context = &*context;
|
let context = &*context;
|
||||||
dc_securejoin::dc_get_securejoin_qr(context, chat_id)
|
dc_securejoin::dc_get_securejoin_qr(context, chat_id)
|
||||||
.unwrap_or("")
|
.unwrap_or("".to_string())
|
||||||
.strdup()
|
.strdup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user