Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-05-19 21:12:52 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-05-19 21:12:52 +0300
commit4bd2573ab9e135d6ffe9309fea8e7103afe38e6e (patch)
tree106a7e52ed680baf4360065f09c6e82e001482f0 /lib/Listener
parent84c804de6dfc5aa914572458b2976f0b268025fe (diff)
Fix user data cleanup after user deletion
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Listener')
-rw-r--r--lib/Listener/UserDeletedListener.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Listener/UserDeletedListener.php b/lib/Listener/UserDeletedListener.php
index 08cf6387e..7f525c0c0 100644
--- a/lib/Listener/UserDeletedListener.php
+++ b/lib/Listener/UserDeletedListener.php
@@ -30,7 +30,7 @@ use OCA\Mail\Service\AccountService;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\ILogger;
-use OCP\User\Events\BeforeUserDeletedEvent;
+use OCP\User\Events\UserDeletedEvent;
class UserDeletedListener implements IEventListener {
@@ -47,7 +47,7 @@ class UserDeletedListener implements IEventListener {
}
public function handle(Event $event): void {
- if (!($event instanceof BeforeUserDeletedEvent)) {
+ if (!($event instanceof UserDeletedEvent)) {
// Unrelated
return;
}