diff options
Diffstat (limited to 'lib/Service/RoomService.php')
-rw-r--r-- | lib/Service/RoomService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index 7deea9cf6..d9c18fb36 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -83,10 +83,10 @@ class RoomService { // If room exists: Reuse that one, otherwise create a new one. $room = $this->manager->getOne2OneRoom($actor->getUID(), $targetUser->getUID()); $this->participantService->ensureOneToOneRoomIsFilled($room); - } catch (RoomNotFoundException $e) { + } catch (RoomNotFoundException) { if (!$this->shareManager->currentUserCanEnumerateTargetUser($actor, $targetUser)) { throw new RoomNotFoundException(); - }; + } $users = [$actor->getUID(), $targetUser->getUID()]; sort($users); |