| 1 | Patch-Source: https://github.com/AnyEvent-XMPP/AnyEvent-XMPP/commit/23648ed086730064776a325055e3ff5fa75ad3b2.patch
|
| 2 | --
|
| 3 | From 23648ed086730064776a325055e3ff5fa75ad3b2 Mon Sep 17 00:00:00 2001
|
| 4 | From: jlfranklin <[email protected]>
|
| 5 | Date: Mon, 9 May 2016 10:28:25 -0400
|
| 6 | Subject: [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 |
|
| 13 | diff --git a/lib/AnyEvent/XMPP/Ext/Receipts.pm b/lib/AnyEvent/XMPP/Ext/Receipts.pm
|
| 14 | index ebee4fb..3fb1c3c 100644
|
| 15 | |
| 16 | |
| 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
|