diff --git a/CHANGELOG.md b/CHANGELOG.md index 056b79ff8..7a3ff8c6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased ### API-Changes +- jsonrpc: add `mailingListAddress` property to `FullChat` #3607 ### Changes - truncate incoming messages by lines instead of just length #3480 diff --git a/deltachat-jsonrpc/src/api/types/chat.rs b/deltachat-jsonrpc/src/api/types/chat.rs index a94eb5de1..ad09a77b3 100644 --- a/deltachat-jsonrpc/src/api/types/chat.rs +++ b/deltachat-jsonrpc/src/api/types/chat.rs @@ -37,6 +37,7 @@ pub struct FullChat { ephemeral_timer: u32, //TODO look if there are more important properties in newer core versions can_send: bool, was_seen_recently: bool, + mailing_list_address: String, } impl FullChat { @@ -80,6 +81,8 @@ impl FullChat { false }; + let mailing_list_address = chat.get_mailinglist_addr().to_string(); + Ok(FullChat { id: chat_id, name: chat.name.clone(), @@ -103,6 +106,7 @@ impl FullChat { ephemeral_timer, can_send, was_seen_recently, + mailing_list_address, }) } } diff --git a/deltachat-jsonrpc/typescript/generated/types.ts b/deltachat-jsonrpc/typescript/generated/types.ts index 23c90f0ac..56ffc455f 100644 --- a/deltachat-jsonrpc/typescript/generated/types.ts +++ b/deltachat-jsonrpc/typescript/generated/types.ts @@ -21,7 +21,7 @@ export type Contact={"address":string;"color":string;"authName":string;"status": * the contact's last seen timestamp */ "lastSeen":I64;"wasSeenRecently":boolean;}; -export type FullChat={"id":U32;"name":string;"isProtected":boolean;"profileImage":(string|null);"archived":boolean;"chatType":U32;"isUnpromoted":boolean;"isSelfTalk":boolean;"contacts":(Contact)[];"contactIds":(U32)[];"color":string;"freshMessageCounter":Usize;"isContactRequest":boolean;"isDeviceChat":boolean;"selfInGroup":boolean;"isMuted":boolean;"ephemeralTimer":U32;"canSend":boolean;"wasSeenRecently":boolean;}; +export type FullChat={"id":U32;"name":string;"isProtected":boolean;"profileImage":(string|null);"archived":boolean;"chatType":U32;"isUnpromoted":boolean;"isSelfTalk":boolean;"contacts":(Contact)[];"contactIds":(U32)[];"color":string;"freshMessageCounter":Usize;"isContactRequest":boolean;"isDeviceChat":boolean;"selfInGroup":boolean;"isMuted":boolean;"ephemeralTimer":U32;"canSend":boolean;"wasSeenRecently":boolean;"mailingListAddress":string;}; /** * cheaper version of fullchat, omits: