mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +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:
@@ -3257,6 +3257,19 @@ uint32_t dc_chat_get_id (const dc_chat_t* chat);
|
||||
int dc_chat_get_type (const dc_chat_t* chat);
|
||||
|
||||
|
||||
/**
|
||||
* Returns the address where messages are sent to if the chat is a mailing list.
|
||||
* If you just want to know if a mailing list can be written to,
|
||||
* use dc_chat_can_send() instead.
|
||||
*
|
||||
* @memberof dc_chat_t
|
||||
* @param chat The chat object.
|
||||
* @return The mailing list address. Must be released using dc_str_unref() after usage.
|
||||
* If there is no such address, an empty string is returned, NULL is never returned.
|
||||
*/
|
||||
char* dc_chat_get_mailinglist_addr (const dc_chat_t* chat);
|
||||
|
||||
|
||||
/**
|
||||
* Get name of a chat. For one-to-one chats, this is the name of the contact.
|
||||
* For group chats, this is the name given e.g. to dc_create_group_chat() or
|
||||
|
||||
Reference in New Issue
Block a user