From 34291d593845c1ec4c2d68dcc4662b020db33f32 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 22 Sep 2015 16:50:08 -0700 Subject: add names to delivery report for sync delivery --- include/zot.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/zot.php b/include/zot.php index eb04e421c..0b1aaa989 100644 --- a/include/zot.php +++ b/include/zot.php @@ -3285,8 +3285,10 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) { require_once('include/DReport.php'); - if(array_key_exists('item',$arr) && is_array($arr['item'][0])) + if(array_key_exists('item',$arr) && is_array($arr['item'][0])) { $DR = new DReport(z_root(),$d['hash'],$d['hash'],$arr['item'][0]['message_id'],'channel sync processed'); + $DR->addto_recipient($channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>'); + } else $DR = new DReport(z_root(),$d['hash'],$d['hash'],'sync packet','channel sync delivered'); -- cgit v1.2.3