add names to delivery report for sync delivery

This commit is contained in:
redmatrix 2015-09-22 16:50:08 -07:00
parent 642f460dca
commit 34291d5938

View File

@ -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');