summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-02-01 21:20:24 +0100
committerJoas Schilling <coding@schilljs.com>2023-02-01 21:20:24 +0100
commit802816405174787e1c47ffed9c110caffbeac266 (patch)
tree6f12304560c46bc237113ca511b0d50a0c012e65 /lib
parentc0ba03046bc48b4e22d26307f99bddb6e644cc97 (diff)
Fix potential guest support
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Collaboration/Collaborators/Listener.php6
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) {