diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-02 11:46:31 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-02 11:58:54 +0200 |
commit | 220089657318501ff9b08941349b27a79b0f7a1b (patch) | |
tree | 676de6bd7cb8e70a814010bd27fb276c3dcf4267 /lib/Manager.php | |
parent | ac1cd084127f0e9d4df8bb52165a993ac6c2f95f (diff) |
Move deleteRoom() to RoomService
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r-- | lib/Manager.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/Manager.php b/lib/Manager.php index 4a9d5100b..c8dc81855 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -55,22 +55,22 @@ use OCP\Server; class Manager { public const EVENT_TOKEN_GENERATE = self::class . '::generateNewToken'; - private IDBConnection $db; - private IConfig $config; - private Config $talkConfig; - private IAppManager $appManager; - private AttendeeMapper $attendeeMapper; - private SessionMapper $sessionMapper; - private ParticipantService $participantService; - private ISecureRandom $secureRandom; - private IUserManager $userManager; - private IGroupManager $groupManager; - private ICommentsManager $commentsManager; - private TalkSession $talkSession; - private IEventDispatcher $dispatcher; + protected IDBConnection $db; + protected IConfig $config; + protected Config $talkConfig; + protected IAppManager $appManager; + protected AttendeeMapper $attendeeMapper; + protected SessionMapper $sessionMapper; + protected ParticipantService $participantService; + protected ISecureRandom $secureRandom; + protected IUserManager $userManager; + protected IGroupManager $groupManager; + protected ICommentsManager $commentsManager; + protected TalkSession $talkSession; + protected IEventDispatcher $dispatcher; protected ITimeFactory $timeFactory; - private IHasher $hasher; - private IL10N $l; + protected IHasher $hasher; + protected IL10N $l; public function __construct(IDBConnection $db, IConfig $config, @@ -383,7 +383,7 @@ class Manager { $rooms = $this->getRoomsForUser($user->getUID()); foreach ($rooms as $room) { if ($this->participantService->getNumberOfUsers($room) === 1) { - $room->deleteRoom(); + Server::get(RoomService::class)->deleteRoom($room); } else { $this->participantService->removeUser($room, $user, Room::PARTICIPANT_REMOVED); } |