From 5cf2040959ce44663cd8da15848873bbb7bc4a46 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 19 Oct 2017 14:41:54 +0200 Subject: Move notification registration to Application class and fix it to Talk Signed-off-by: Joas Schilling --- appinfo/app.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'appinfo') diff --git a/appinfo/app.php b/appinfo/app.php index 6a7153cd3..4413cb5e3 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -20,23 +20,5 @@ */ $app = new \OCA\Spreed\AppInfo\Application(); -$app->registerHooks(); - // For the navigation $l->t('Talk') - -$manager = \OC::$server->getNotificationManager(); -$manager->registerNotifier(function() { - return \OC::$server->query(\OCA\Spreed\Notification\Notifier::class); -}, function() { - $l = \OC::$server->getL10N('spreed'); - - return [ - 'id' => 'spreed', - 'name' => $l->t('Video calls'), - ]; -}); - -\OC::$server->getUserManager()->listen('\OC\User', 'postDelete', function ($user) { - $listener = \OC::$server->query(\OCA\Spreed\HookListener::class); - $listener->deleteUser($user); -}); +$app->register(); -- cgit v1.2.3