Get the list of unread conversations.

This commit is contained in:
Pierre
2018-02-23 11:32:17 +01:00
parent 3d874b550b
commit dd191a6463
2 changed files with 52 additions and 0 deletions

View File

@ -402,6 +402,22 @@ class conversationsController{
return array("nb_unread" => $number_unread_conversations);
}
/**
* Get the list of unread notifications
*
* @url POST /conversations/get_list_unread
*/
public function get_list_unread(){
user_login_required();
//Get the list of unread conversations of the user
$list_unread_conversations = components()->conversations->get_list_unread(userID);
//Return result
return $list_unread_conversations;
}
/**
* Delete a conversation
*