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
parent
commit
102836878a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/Collaboration/Collaborators/Listener.php

6
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) {

Loading…
Cancel
Save