projects/aports·blob master · refs

24 lines · 981 B

1Patch-Source: https://github.com/AnyEvent-XMPP/AnyEvent-XMPP/commit/23648ed086730064776a325055e3ff5fa75ad3b2.patch
2--
3From 23648ed086730064776a325055e3ff5fa75ad3b2 Mon Sep 17 00:00:00 2001
4From: jlfranklin <[email protected]>
5Date: Mon, 9 May 2016 10:28:25 -0400
6Subject: [PATCH] Generate an event from the XMPP Connection object when a
7 delivery receipt comes in. (#9)
8
9---
10 lib/AnyEvent/XMPP/Ext/Receipts.pm | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/lib/AnyEvent/XMPP/Ext/Receipts.pm b/lib/AnyEvent/XMPP/Ext/Receipts.pm
14index ebee4fb..3fb1c3c 100644
15--- a/lib/AnyEvent/XMPP/Ext/Receipts.pm
16+++ b/lib/AnyEvent/XMPP/Ext/Receipts.pm
17@@ -133,6 +133,7 @@ sub init {
18 # supports receipts.
19 $supports_receipts{$node->attr('from')} = 1;
20 $self->stop_event;
21+ $con->event (delivery_receipt => $self, $node);
22 }
23
24 # Figure out if this is a message which requests a receipt, such as