MDL-54701 message: added isread to data_for_messagearea_conversations
[moodle.git] / message / classes / helper.php
index d526d52..767f138 100644 (file)
@@ -146,7 +146,8 @@ class helper {
         }
         // Check if the user is online.
         $data->isonline = $userfields->lastaccess >= $time;
+        $data->isread = isset($contact->isread) ? $contact->isread : 0;
 
         return new \core_message\output\contact($data);
     }
-}
\ No newline at end of file
+}