Skip to content

Commit c92c6a2

Browse files
authored
jsonrpc: add mailingListAddress property to FullChat (#3607)
* jsonrpc: add `mailingListAddress` property to `FullChat` * add pr number to changelog
1 parent ffe7216 commit c92c6a2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
### API-Changes
6+
- jsonrpc: add `mailingListAddress` property to `FullChat` #3607
67

78
### Changes
89
- truncate incoming messages by lines instead of just length #3480

deltachat-jsonrpc/src/api/types/chat.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub struct FullChat {
3737
ephemeral_timer: u32, //TODO look if there are more important properties in newer core versions
3838
can_send: bool,
3939
was_seen_recently: bool,
40+
mailing_list_address: String,
4041
}
4142

4243
impl FullChat {
@@ -80,6 +81,8 @@ impl FullChat {
8081
false
8182
};
8283

84+
let mailing_list_address = chat.get_mailinglist_addr().to_string();
85+
8386
Ok(FullChat {
8487
id: chat_id,
8588
name: chat.name.clone(),
@@ -103,6 +106,7 @@ impl FullChat {
103106
ephemeral_timer,
104107
can_send,
105108
was_seen_recently,
109+
mailing_list_address,
106110
})
107111
}
108112
}

deltachat-jsonrpc/typescript/generated/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type Contact={"address":string;"color":string;"authName":string;"status":
2121
* the contact's last seen timestamp
2222
*/
2323
"lastSeen":I64;"wasSeenRecently":boolean;};
24-
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;};
24+
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;};
2525

2626
/**
2727
* cheaper version of fullchat, omits:

0 commit comments

Comments
 (0)