Skip to content

Commit

Permalink
display fresh members as invited
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl authored and backportbot[bot] committed Oct 8, 2020
1 parent 10ddecb commit 1256a61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/Service/MembersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,14 @@ private function addSingleMember(Circle $circle, $ident, $type, $instance = '',
$this->gsUpstreamService->newEvent($event);

$new = $event->getMember();
$new->setLevel(Member::LEVEL_MEMBER);
$new->setStatus(Member::STATUS_MEMBER);
$new->setJoined($this->l10n->t('now'));
if ($circle->getType() === Circle::CIRCLES_CLOSED) {
// $new->setLevel(Member::LEVEL_MEMBER);
$new->setStatus(Member::STATUS_INVITED);
} else {
// $new->setLevel(Member::LEVEL_MEMBER);
$new->setStatus(Member::STATUS_MEMBER);
}

if ($new->getInstance() === $this->configService->getLocalCloudId()) {
$new->setInstance('');
Expand Down

0 comments on commit 1256a61

Please sign in to comment.