mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Get the list of unread conversations.
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user