Skip to content

Commit

Permalink
Merge pull request #997 from nextcloud/backport/991/stable23
Browse files Browse the repository at this point in the history
[stable23] update population
  • Loading branch information
ArtificialOwl authored Apr 5, 2022
2 parents 76166d6 + 92d8295 commit aa0e16f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Command/CirclesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ private function displayCircles(array $circles): void {
Circle::$DEF_SOURCE[$circle->getSource()],
$this->cut($displayName ? $owner->getDisplayName() : $owner->getUserId(), 40),
$this->configService->displayInstance($owner->getInstance()),
$circle->getPopulation() . '/' . $this->getInt(
'members_limit', $circle->getSettings(), -1
)
$circle->getPopulation() . '/'
. $this->getInt('members_limit', $circle->getSettings(), -1)
. ' (' . $circle->getPopulationInherited() . ')'
]
);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/FederatedItems/CircleCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ public function manage(FederatedEvent $event): void {

$this->circleRequest->save($circle);
$this->memberRequest->save($owner);

$this->membershipService->onUpdate($owner->getSingleId());
$this->membershipService->updatePopulation($circle);

$this->eventService->circleCreating($event);
}
Expand Down

0 comments on commit aa0e16f

Please sign in to comment.