fix: use official circle api

pull/173/head
sualko 2021-07-26 16:07:16 +02:00
parent c93f60c8cd
commit 4f41df6156
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ class CircleHelper {
$api = $this->getCircleAPI(); $api = $this->getCircleAPI();
if ($api !== false) { if ($api !== false) {
// since v0.19.x \OCA\Circles\Api\v1\Circles can be used $circles = $api->listCircles(\OCA\Circles\Api\v1\Circles::CIRCLES_ALL, '', \OCA\Circles\Model\Member::LEVEL_MEMBER);
$circles = $api->listCircles(\OCA\Circles\Model\Circle::CIRCLES_ALL, '', \OCA\Circles\Model\Member::LEVEL_MEMBER);
foreach ($circles as $circle) { foreach ($circles as $circle) {
$this->cache[$userId][] = $circle->getUniqueId(); $this->cache[$userId][] = $circle->getUniqueId();