diff options
author | Joas Schilling <coding@schilljs.com> | 2017-10-19 15:41:54 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-10-19 15:41:54 +0300 |
commit | 5cf2040959ce44663cd8da15848873bbb7bc4a46 (patch) | |
tree | 2164323e6019fde3dea841459fd3ada3bb71527e /appinfo | |
parent | 5be481aacbf74a5c841632945efa85f184745831 (diff) |
Move notification registration to Application class and fix it to Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 20 |
1 files changed, 1 insertions, 19 deletions
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(); |