File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
deltachat-jsonrpc/src/api/types Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ pub enum EventType {
109
109
/// Incoming webxdc info or summary update, should be notified.
110
110
#[ serde( rename_all = "camelCase" ) ]
111
111
IncomingWebxdcNotify {
112
+ chat_id : u32 ,
112
113
contact_id : u32 ,
113
114
msg_id : u32 ,
114
115
text : String ,
@@ -343,11 +344,13 @@ impl From<CoreEventType> for EventType {
343
344
reaction : reaction. as_str ( ) . to_string ( ) ,
344
345
} ,
345
346
CoreEventType :: IncomingWebxdcNotify {
347
+ chat_id,
346
348
contact_id,
347
349
msg_id,
348
350
text,
349
351
href,
350
352
} => IncomingWebxdcNotify {
353
+ chat_id : chat_id. to_u32 ( ) ,
351
354
contact_id : contact_id. to_u32 ( ) ,
352
355
msg_id : msg_id. to_u32 ( ) ,
353
356
text,
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ pub enum EventType {
109
109
110
110
/// A webxdc wants an info message or a changed summary to be notified.
111
111
IncomingWebxdcNotify {
112
+ /// ID of the chat.
113
+ chat_id : ChatId ,
114
+
112
115
/// ID of the contact sending.
113
116
contact_id : ContactId ,
114
117
Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ impl Context {
421
421
notify_list. get ( & self_addr) . or_else ( || notify_list. get ( "*" ) )
422
422
{
423
423
self . emit_event ( EventType :: IncomingWebxdcNotify {
424
+ chat_id : instance. chat_id ,
424
425
contact_id : from_id,
425
426
msg_id : notify_msg_id,
426
427
text : notify_text. clone ( ) ,
You can’t perform that action at this time.
0 commit comments