Can get the number of pending calls for a user

This commit is contained in:
2019-01-24 17:40:26 +01:00
parent e41cf0161e
commit 9d1371fd81
2 changed files with 22 additions and 0 deletions

View File

@ -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;
}