feat: add IncomingWebxdcNotify.chat_id (#6356)

This commit is contained in:
WofWca
2024-12-25 21:49:27 +04:00
committed by GitHub
parent f61d5af468
commit f8bf5a3557
3 changed files with 7 additions and 0 deletions

View File

@@ -109,6 +109,9 @@ pub enum EventType {
/// A webxdc wants an info message or a changed summary to be notified.
IncomingWebxdcNotify {
/// ID of the chat.
chat_id: ChatId,
/// ID of the contact sending.
contact_id: ContactId,

View File

@@ -421,6 +421,7 @@ impl Context {
notify_list.get(&self_addr).or_else(|| notify_list.get("*"))
{
self.emit_event(EventType::IncomingWebxdcNotify {
chat_id: instance.chat_id,
contact_id: from_id,
msg_id: notify_msg_id,
text: notify_text.clone(),