mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 08:35:18 +00:00
Can get the number of pending calls for a user
This commit is contained in:
@ -50,6 +50,12 @@ class notificationsController {
|
||||
if(postBool("friends_request"))
|
||||
$data["friends_request"] = components()->friends->count_requests(userID);
|
||||
|
||||
|
||||
//Include pending calls if required
|
||||
if(isset($_POST["include_calls"]))
|
||||
if(postBool("include_calls"))
|
||||
$data["calls"] = components()->calls->countPendingResponsesForUser(userID);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user