From c59701740294ee8986942579abe18f82c4dee176 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 Jan 2024 17:38:31 +0000 Subject: fix some deprecation warnings --- Zotlabs/Lib/DReport.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Zotlabs/Lib/DReport.php') diff --git a/Zotlabs/Lib/DReport.php b/Zotlabs/Lib/DReport.php index e22ed65be..f4f098d19 100644 --- a/Zotlabs/Lib/DReport.php +++ b/Zotlabs/Lib/DReport.php @@ -6,6 +6,7 @@ class DReport { private $location; private $sender; private $recipient; + private $name; private $message_id; private $status; private $date; -- cgit v1.2.3 From 5f2e80849753928ee30e8420750b6218c64b4e25 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 7 Feb 2024 15:37:20 +0000 Subject: add uuid to dreport for internal use and and fix issues with conversation fetches --- Zotlabs/Lib/DReport.php | 52 ++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 24 deletions(-) (limited to 'Zotlabs/Lib/DReport.php') diff --git a/Zotlabs/Lib/DReport.php b/Zotlabs/Lib/DReport.php index f4f098d19..71e39a9d7 100644 --- a/Zotlabs/Lib/DReport.php +++ b/Zotlabs/Lib/DReport.php @@ -8,22 +8,24 @@ class DReport { private $recipient; private $name; private $message_id; + private $message_uuid; private $status; private $date; - function __construct($location,$sender,$recipient,$message_id,$status = 'deliver') { - $this->location = $location; - $this->sender = $sender; - $this->recipient = $recipient; - $this->name = EMPTY_STR; - $this->message_id = $message_id; - $this->status = $status; - $this->date = datetime_convert(); + function __construct($location, $sender, $recipient, $message_id, $message_uuid = '', $status = 'deliver') { + $this->location = $location; + $this->sender = $sender; + $this->recipient = $recipient; + $this->name = EMPTY_STR; + $this->message_id = $message_id; + $this->message_uuid = $message_uuid; + $this->status = $status; + $this->date = datetime_convert(); } function update($status) { - $this->status = $status; - $this->date = datetime_convert(); + $this->status = $status; + $this->date = datetime_convert(); } function set_name($name) { @@ -36,24 +38,26 @@ class DReport { function set($arr) { - $this->location = $arr['location']; - $this->sender = $arr['sender']; - $this->recipient = $arr['recipient']; - $this->name = $arr['name']; - $this->message_id = $arr['message_id']; - $this->status = $arr['status']; - $this->date = $arr['date']; + $this->location = $arr['location']; + $this->sender = $arr['sender']; + $this->recipient = $arr['recipient']; + $this->name = $arr['name']; + $this->message_id = $arr['message_id']; + $this->message_uuid = $arr['message_uuid'] ?? ''; + $this->status = $arr['status']; + $this->date = $arr['date']; } function get() { return array( - 'location' => $this->location, - 'sender' => $this->sender, - 'recipient' => $this->recipient, - 'name' => $this->name, - 'message_id' => $this->message_id, - 'status' => $this->status, - 'date' => $this->date + 'location' => $this->location, + 'sender' => $this->sender, + 'recipient' => $this->recipient, + 'name' => $this->name, + 'message_id' => $this->message_id, + 'message_uuid' => $this->message_uuid, + 'status' => $this->status, + 'date' => $this->date ); } -- cgit v1.2.3