diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-10-04 16:00:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 16:00:15 +0200 |
commit | 4df5ae8a4d5e9260681ec93cbeaa5a74e75ea741 (patch) | |
tree | d9ca0ebb404b6e7248365472b31eff153e3b549f /lib/Service/ParticipantService.php | |
parent | 77a4405ae0f0e315fa4e412bf04bb8c987fdde5b (diff) | |
parent | 95f9b3d6a21ad2a660b89fb7b6a469d49d46cc10 (diff) |
Merge pull request #10632 from nextcloud/bugfix/noid/fix-type-error
fix(email): Fix sending re-invites to all emails
Diffstat (limited to 'lib/Service/ParticipantService.php')
-rw-r--r-- | lib/Service/ParticipantService.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 35a565267..de482b494 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -811,6 +811,9 @@ class ParticipantService { } } + /** + * @return Attendee[] + */ public function getActorsByType(Room $room, string $actorType): array { return $this->attendeeMapper->getActorsByType($room->getId(), $actorType); } @@ -1386,6 +1389,14 @@ class ParticipantService { } /** + * @return Participant[] + */ + public function getParticipantsByActorType(Room $room, string $actorType): array { + $attendees = $this->getActorsByType($room, $actorType); + return array_map(static fn (Attendee $attendee) => new Participant($room, $attendee, null), $attendees); + } + + /** * @param IQueryBuilder $query * @param Room $room * @return Participant[] |