Skip to content

Commit fc61539

Browse files
Merge pull request #998 from nextcloud/backport/991/stable22
[stable22] update population
2 parents f9eb7bf + 3615067 commit fc61539

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/Command/CirclesList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ private function displayCircles(array $circles): void {
257257
Circle::$DEF_SOURCE[$circle->getSource()],
258258
$this->cut($displayName ? $owner->getDisplayName() : $owner->getUserId(), 40),
259259
$this->configService->displayInstance($owner->getInstance()),
260-
$circle->getPopulation() . '/' . $this->getInt(
261-
'members_limit', $circle->getSettings(), -1
262-
)
260+
$circle->getPopulation() . '/'
261+
. $this->getInt('members_limit', $circle->getSettings(), -1)
262+
. ' (' . $circle->getPopulationInherited() . ')'
263263
]
264264
);
265265
}

lib/FederatedItems/CircleCreate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ public function manage(FederatedEvent $event): void {
142142

143143
$this->circleRequest->save($circle);
144144
$this->memberRequest->save($owner);
145+
145146
$this->membershipService->onUpdate($owner->getSingleId());
147+
$this->membershipService->updatePopulation($circle);
146148

147149
$this->eventService->circleCreating($event);
148150
}

0 commit comments

Comments
 (0)