mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
unwrap mailinglist addr option in cffi
so rust api and jsonrpc return the option
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user