Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-02-10 19:29:59 +0300
committerJoas Schilling <coding@schilljs.com>2022-02-25 23:00:52 +0300
commitf004976effb2adc9f434796317914705c615bd64 (patch)
tree3884cc16bb9d089f55c8bcafc2a995bdb15fc507 /lib/Service
parent5183edf4752053b88a1fb6d1c3897a2725e29b39 (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.php5
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);
}