From 0c64b153c93de3235afb657ab57eff9f62754f54 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 31 Dec 2017 14:08:27 +0100 Subject: [PATCH] Update read status in refresh_single --- RestControllers/conversationsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RestControllers/conversationsController.php b/RestControllers/conversationsController.php index 85f9c52..a516f10 100644 --- a/RestControllers/conversationsController.php +++ b/RestControllers/conversationsController.php @@ -378,6 +378,9 @@ class conversationsController{ CS::get()->components->conversations->getNewMessages($conversationID, $last_message_id); } + //Specify that user has seen last messages + CS::get()->components->conversations->markUserAsRead(userID, $conversationID); + //Return the messges return $messages;