diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-09-22 02:55:22 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-09-22 07:11:39 +0200 |
commit | d9f3ed06b81e036250798ca54b12ba230542a72a (patch) | |
tree | afe15f0487849a86cab7d3f9b79bbc96d136d3be /lib | |
parent | d523b4e622fdc86522f89d5e8f9f38821b266579 (diff) |
Fix participant sessions not sent to the HPB
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Signaling/Listener.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Signaling/Listener.php b/lib/Signaling/Listener.php index 566641d9e..d6b835b6a 100644 --- a/lib/Signaling/Listener.php +++ b/lib/Signaling/Listener.php @@ -224,17 +224,11 @@ class Listener { $sessionIds = []; - $sessionService = Server::get(SessionService::class); - $sessions = $sessionService->getAllSessionsForAttendee($event->getParticipant()->getAttendee()); + $sessions = $event->getSessions(); foreach ($sessions as $session) { $sessionIds[] = $session->getSessionId(); } - if ($event->getParticipant()->getSession()) { - $sessionIds[] = $event->getParticipant()->getSession()->getSessionId(); - $notifier->roomSessionsRemoved($event->getRoom(), $sessionIds); - } - if (!empty($sessionIds)) { $notifier->roomSessionsRemoved($event->getRoom(), $sessionIds); } |