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

@@ -1130,8 +1130,8 @@ impl Chat {
}
/// Returns mailing list address where messages are sent to.
pub fn get_mailinglist_addr(&self) -> &str {
self.param.get(Param::ListPost).unwrap_or_default()
pub fn get_mailinglist_addr(&self) -> Option<&str> {
self.param.get(Param::ListPost)
}
/// Returns profile image path for the chat.