File tree 1 file changed +7
-0
lines changed
deltachat-jsonrpc/src/api/types
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ pub struct MessageObject {
70
70
/// when is_info is true this describes what type of system message it is
71
71
system_message_type : SystemMessageType ,
72
72
73
+ /// if is_info is set, this refers to the contact profile that should be opened when the info message is tapped.
74
+ info_contact_id : Option < u32 > ,
75
+
73
76
duration : i32 ,
74
77
dimensions_height : i32 ,
75
78
dimensions_width : i32 ,
@@ -228,6 +231,10 @@ impl MessageObject {
228
231
is_forwarded : message. is_forwarded ( ) ,
229
232
is_bot : message. is_bot ( ) ,
230
233
system_message_type : message. get_info_type ( ) . into ( ) ,
234
+ info_contact_id : message
235
+ . get_info_contact_id ( context)
236
+ . await ?
237
+ . map ( |id| id. to_u32 ( ) ) ,
231
238
232
239
duration : message. get_duration ( ) ,
233
240
dimensions_height : message. get_height ( ) ,
You can’t perform that action at this time.
0 commit comments