mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
add ffi to get mailinglist post address (#3520)
* add ffi to get mailinglist post address * Update deltachat-ffi/deltachat.h Co-authored-by: Hocuri <hocuri@gmx.de> * adapt tests to check get_mailinglist_addr() Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
@@ -1129,6 +1129,11 @@ impl Chat {
|
||||
&self.name
|
||||
}
|
||||
|
||||
/// Returns mailing list address where messages are sent to.
|
||||
pub fn get_mailinglist_addr(&self) -> &str {
|
||||
self.param.get(Param::ListPost).unwrap_or_default()
|
||||
}
|
||||
|
||||
/// Returns profile image path for the chat.
|
||||
pub async fn get_profile_image(&self, context: &Context) -> Result<Option<PathBuf>> {
|
||||
if let Some(image_rel) = self.param.get(Param::ProfileImage) {
|
||||
|
||||
Reference in New Issue
Block a user