From 5be481aacbf74a5c841632945efa85f184745831 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 19 Oct 2017 14:36:52 +0200 Subject: Fix navigation entry Signed-off-by: Joas Schilling --- appinfo/app.php | 2 +- appinfo/info.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'appinfo') diff --git a/appinfo/app.php b/appinfo/app.php index 35b7e4fb8..6a7153cd3 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -22,7 +22,7 @@ $app = new \OCA\Spreed\AppInfo\Application(); $app->registerHooks(); -// For the navigation $l->t('Video calls') +// For the navigation $l->t('Talk') $manager = \OC::$server->getNotificationManager(); $manager->registerNotifier(function() { diff --git a/appinfo/info.xml b/appinfo/info.xml index b7f393acf..6b37496bf 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -54,7 +54,7 @@ And in the works for the [coming versions](https://github.com/nextcloud/spreed/m - Video calls + Talk spreed.Page.index 3 -- cgit v1.2.3 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 From 0375485878ff50ce27fb1dbee6516064be9ea64c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 19 Oct 2017 14:46:08 +0200 Subject: Fix readme and info.xml Signed-off-by: Joas Schilling --- appinfo/info.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'appinfo') diff --git a/appinfo/info.xml b/appinfo/info.xml index 6b37496bf..1795b53b3 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -1,11 +1,11 @@ spreed - Video calls + Talk AGPL -- cgit v1.2.3