mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
unwrap mailinglist addr option in cffi
so rust api and jsonrpc return the option
This commit is contained in:
@@ -2852,7 +2852,7 @@ pub unsafe extern "C" fn dc_chat_get_mailinglist_addr(chat: *mut dc_chat_t) -> *
|
||||
return "".strdup();
|
||||
}
|
||||
let ffi_chat = &*chat;
|
||||
ffi_chat.chat.get_mailinglist_addr().strdup()
|
||||
ffi_chat.chat.get_mailinglist_addr().unwrap_or_default().strdup()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user