File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
5
5
### API-Changes
6
+ - jsonrpc: add ` mailingListAddress ` property to ` FullChat ` #3607
6
7
7
8
### Changes
8
9
- truncate incoming messages by lines instead of just length #3480
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ pub struct FullChat {
37
37
ephemeral_timer : u32 , //TODO look if there are more important properties in newer core versions
38
38
can_send : bool ,
39
39
was_seen_recently : bool ,
40
+ mailing_list_address : String ,
40
41
}
41
42
42
43
impl FullChat {
@@ -80,6 +81,8 @@ impl FullChat {
80
81
false
81
82
} ;
82
83
84
+ let mailing_list_address = chat. get_mailinglist_addr ( ) . to_string ( ) ;
85
+
83
86
Ok ( FullChat {
84
87
id : chat_id,
85
88
name : chat. name . clone ( ) ,
@@ -103,6 +106,7 @@ impl FullChat {
103
106
ephemeral_timer,
104
107
can_send,
105
108
was_seen_recently,
109
+ mailing_list_address,
106
110
} )
107
111
}
108
112
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export type Contact={"address":string;"color":string;"authName":string;"status":
21
21
* the contact's last seen timestamp
22
22
*/
23
23
"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 ; } ;
25
25
26
26
/**
27
27
* cheaper version of fullchat, omits:
You can’t perform that action at this time.
0 commit comments