Browse Source
Merge pull request #8669 from nextcloud/followup/8651/fix-upcoming-guest-support
Fix potential guest support
pull/8670/head
Joas Schilling
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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) { |
|
|
|