diff options
Diffstat (limited to 'lib/Collaboration/Collaborators/Listener.php')
-rw-r--r-- | lib/Collaboration/Collaborators/Listener.php | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |