diff options
author | Joas Schilling <coding@schilljs.com> | 2022-02-10 19:29:59 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-25 23:00:52 +0300 |
commit | f004976effb2adc9f434796317914705c615bd64 (patch) | |
tree | 3884cc16bb9d089f55c8bcafc2a995bdb15fc507 /lib/Service | |
parent | 5183edf4752053b88a1fb6d1c3897a2725e29b39 (diff) |
Handle all user status changes in case of "End meeting for all" in 1 execution
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/ParticipantService.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index eb26ae236..24f8e4a3a 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -913,14 +913,19 @@ class ParticipantService { $participants = $this->getParticipantsInCall($room); $changedSessionIds = []; + $changedUserIds = []; // kick out all participants out of the call foreach ($participants as $participant) { $changedSessionIds[] = $participant->getSession()->getSessionId(); + if ($participant->getAttendee()->getActorType() === Attendee::ACTOR_USERS) { + $changedUserIds[] = $participant->getAttendee()->getActorId(); + } $this->changeInCall($room, $participant, Participant::FLAG_DISCONNECTED, true); } $event->setSessionIds($changedSessionIds); + $event->setUserIds($changedUserIds); $this->dispatcher->dispatch(Room::EVENT_AFTER_END_CALL_FOR_EVERYONE, $event); } |