From 25c7639bdf50b8bd7b5547fd30e64d28f9400550 Mon Sep 17 00:00:00 2001 From: Ismayil Khayredinov Date: Tue, 26 Jan 2016 18:20:11 +0100 Subject: [PATCH] fix(messages): mark senders copy as read --- classes/hypeJunction/Inbox/Message.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/hypeJunction/Inbox/Message.php b/classes/hypeJunction/Inbox/Message.php index d58a14f..135c0c4 100644 --- a/classes/hypeJunction/Inbox/Message.php +++ b/classes/hypeJunction/Inbox/Message.php @@ -430,7 +430,8 @@ public function send() { $this->owner_guid = $owner->guid; // A copy of the message is owned by each of the participants $this->container_guid = $owner->guid; $this->access_id = ACCESS_PRIVATE; // A copy of the message is private to its owner - + $this->readYet = true; + $guid = $this->save(); if (!$guid) { return false;