mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +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 {
|
||||
if context.is_null() {
|
||||
eprintln!("ignoring careless call to dc_get_securejoin_qr()");
|
||||
"".strdup()
|
||||
return "".strdup();
|
||||
}
|
||||
|
||||
let context = &*context;
|
||||
dc_securejoin::dc_get_securejoin_qr(context, chat_id)
|
||||
.unwrap_or("")
|
||||
.unwrap_or("".to_string())
|
||||
.strdup()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user