[VKAPI] Fix groups & added smth in Account

This commit is contained in:
Alma Armas 2021-01-16 22:11:04 +00:00
parent 0cab84a2be
commit 30ae2d3a07
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,8 @@ final class Account extends VKAPIRequestHandler
{
return (object) [
"friends" => $this->getUser()->getFollowersCount(),
"notifications" => $this->getUser()->getNotificationsCount()
"notifications" => $this->getUser()->getNotificationsCount(),
"messages" => $this->getUser()->getUnreadMessagesCount()
];
// TODO: Filter

View file

@ -1,7 +1,6 @@
<?php declare(strict_types=1);
namespace openvk\VKAPI\Handlers;
use openvk\Web\Models\Entities\User;
use openvk\Web\Models\Repositories\clubs as clubsRepo;
use openvk\Web\Models\Entities\Clubs;
use openvk\Web\Models\Repositories\Clubs as ClubsRepo;
use openvk\Web\Models\Entities\Post;