Skip to content

Commit

Permalink
Merge pull request #991 from nextcloud/fix/noid/update-population-on-…
Browse files Browse the repository at this point in the history
…new-circle

update population
  • Loading branch information
ArtificialOwl authored Apr 5, 2022
2 parents d0fbb21 + 1b5b453 commit 1e006fc
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 1e006fc

Please sign in to comment.