summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/lib/AppInfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-09-29 21:03:28 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-01 15:35:25 +0200
commitc55731426240c0debd3a9bad3cb5e32b6f7e76a8 (patch)
tree895addc0bdda121221d5b1d90ebe894a0622a497 /apps/twofactor_backupcodes/lib/AppInfo
parent956fe1b86769c1a8a380a61ba72441f0e334e36a (diff)
downloadnextcloud-server-c55731426240c0debd3a9bad3cb5e32b6f7e76a8.tar.gz
nextcloud-server-c55731426240c0debd3a9bad3cb5e32b6f7e76a8.zip
Clear notification to generate backup code once codes are generated
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes/lib/AppInfo')
-rw-r--r--apps/twofactor_backupcodes/lib/AppInfo/Application.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/lib/AppInfo/Application.php b/apps/twofactor_backupcodes/lib/AppInfo/Application.php
index 1af114a2791..f5d0139dbd9 100644
--- a/apps/twofactor_backupcodes/lib/AppInfo/Application.php
+++ b/apps/twofactor_backupcodes/lib/AppInfo/Application.php
@@ -28,6 +28,7 @@ namespace OCA\TwoFactorBackupCodes\AppInfo;
use OCA\TwoFactorBackupCodes\Db\BackupCodeMapper;
use OCA\TwoFactorBackupCodes\Event\CodesGenerated;
use OCA\TwoFactorBackupCodes\Listener\ActivityPublisher;
+use OCA\TwoFactorBackupCodes\Listener\ClearNotifications;
use OCA\TwoFactorBackupCodes\Listener\IListener;
use OCA\TwoFactorBackupCodes\Listener\ProviderEnabled;
use OCA\TwoFactorBackupCodes\Listener\RegistryUpdater;
@@ -67,6 +68,7 @@ class Application extends App {
$listeners = [
$container->query(ActivityPublisher::class),
$container->query(RegistryUpdater::class),
+ $container->query(ClearNotifications::class),
];
foreach ($listeners as $listener) {