diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-13 15:22:08 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-13 15:22:08 +0200 |
commit | ccf308919a1ff361d3e2a7d3df523677497e330a (patch) | |
tree | eefddf2b873a1b59534120cf39cee0d1b3915d6f | |
parent | a4f3e569e2777c20b4ab497109bbf9e44a7eeed6 (diff) |
Only declare the actual changed session of a user as changed
Before all sessions of a user where seen as changed, instead of
only the one session that actually was changed.
It is a regression from introducing multi-session support I assume.
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Signaling/Listener.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Signaling/Listener.php b/lib/Signaling/Listener.php index 19dc896fd..49d6c9673 100644 --- a/lib/Signaling/Listener.php +++ b/lib/Signaling/Listener.php @@ -276,11 +276,8 @@ class Listener { $notifier = Server::get(BackendNotifier::class); $sessionIds = []; - - $sessionService = Server::get(SessionService::class); - $sessions = $sessionService->getAllSessionsForAttendee($event->getParticipant()->getAttendee()); - foreach ($sessions as $session) { - $sessionIds[] = $session->getSessionId(); + if ($event->getParticipant()->getSession()) { + $sessionIds[] = $event->getParticipant()->getSession()->getSessionId(); } if (!empty($sessionIds)) { |