Skip to content

Commit

Permalink
Merge pull request #41452 from nextcloud/backport/41447/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(backupcodes): Remove old notifications before creating a new remi…
  • Loading branch information
nickvergessen committed Nov 14, 2023
2 parents 69186f6 + d0bd69a commit 009375b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ protected function run($argument) {
$notification = $this->notificationManager->createNotification();
$notification->setApp('twofactor_backupcodes')
->setUser($user->getUID())
->setDateTime($date)
->setObject('create', 'codes')
->setSubject('create_backupcodes');
$this->notificationManager->markProcessed($notification);

$notification->setDateTime($date);
$this->notificationManager->notify($notification);
}
}

0 comments on commit 009375b

Please sign in to comment.