unwrap mailinglist addr option in cffi

so rust api and jsonrpc return the option
This commit is contained in:
Simon Laux
2022-10-31 18:51:52 +01:00
committed by link2xt
parent 3150d2b94b
commit 1bd53de1f7
4 changed files with 6 additions and 6 deletions

View File

@@ -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]