From 802816405174787e1c47ffed9c110caffbeac266 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 1 Feb 2023 21:20:24 +0100 Subject: Fix potential guest support Signed-off-by: Joas Schilling --- lib/Collaboration/Collaborators/Listener.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Collaboration/Collaborators/Listener.php b/lib/Collaboration/Collaborators/Listener.php index fdca86a18..d39101d5d 100644 --- a/lib/Collaboration/Collaborators/Listener.php +++ b/lib/Collaboration/Collaborators/Listener.php @@ -132,7 +132,11 @@ class Listener { $sessionId = $this->talkSession->getSessionForRoom($token); try { $this->room = $this->manager->getRoomForUserByToken($token, $this->userId); - $this->participantService->getParticipant($this->room, $this->userId, $sessionId); + if ($this->userId !== null) { + $this->participantService->getParticipant($this->room, $this->userId, $sessionId); + } else { + $this->participantService->getParticipantBySession($this->room, $sessionId); + } } catch (RoomNotFoundException $e) { return $results; } catch (ParticipantNotFoundException $e) { -- cgit v1.2.3