summaryrefslogtreecommitdiffstats
path: root/lib/Controller/RoomController.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-10-04 16:00:15 +0200
committerGitHub <noreply@github.com>2023-10-04 16:00:15 +0200
commit4df5ae8a4d5e9260681ec93cbeaa5a74e75ea741 (patch)
treed9ca0ebb404b6e7248365472b31eff153e3b549f /lib/Controller/RoomController.php
parent77a4405ae0f0e315fa4e412bf04bb8c987fdde5b (diff)
parent95f9b3d6a21ad2a660b89fb7b6a469d49d46cc10 (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/Controller/RoomController.php')
-rw-r--r--lib/Controller/RoomController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 37e9c873e..be1cf7e6b 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -1441,6 +1441,7 @@ class RoomController extends AEnvironmentAwareController {
#[NoAdminRequired]
#[RequireModeratorParticipant]
public function resendInvitations(?int $attendeeId): DataResponse {
+ /** @var Participant[] $participants */
$participants = [];
// targeting specific participant
@@ -1451,7 +1452,7 @@ class RoomController extends AEnvironmentAwareController {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}
} else {
- $participants = $this->participantService->getActorsByType($this->room, Attendee::ACTOR_EMAILS);
+ $participants = $this->participantService->getParticipantsByActorType($this->room, Attendee::ACTOR_EMAILS);
}
foreach ($participants as $participant) {