diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-02-10 16:03:01 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-02-10 18:23:08 +0300 |
commit | a129d48104fae9a09eec2d5a5d3725817248ca1f (patch) | |
tree | ceae73e05b1cc90449007f4fa2d324772351fbb5 /lib/AppInfo | |
parent | 9983469f045fdd120498acee9da73bd400227d82 (diff) |
Delete cached messages when deleting them on IMAP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/BootstrapSingleton.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AppInfo/BootstrapSingleton.php b/lib/AppInfo/BootstrapSingleton.php index f0451845b..53a7978fc 100644 --- a/lib/AppInfo/BootstrapSingleton.php +++ b/lib/AppInfo/BootstrapSingleton.php @@ -23,7 +23,6 @@ namespace OCA\Mail\AppInfo; -use OC\Hooks\PublicEmitter; use OCA\Mail\Contracts\IAttachmentService; use OCA\Mail\Contracts\IAvatarService; use OCA\Mail\Contracts\IMailManager; @@ -32,6 +31,7 @@ use OCA\Mail\Contracts\IMailTransmission; use OCA\Mail\Contracts\IUserPreferences; use OCA\Mail\Events\BeforeMessageDeletedEvent; use OCA\Mail\Events\DraftSavedEvent; +use OCA\Mail\Events\MessageDeletedEvent; use OCA\Mail\Events\MessageSentEvent; use OCA\Mail\Events\SaveDraftEvent; use OCA\Mail\Http\Middleware\ErrorMiddleware; @@ -40,6 +40,7 @@ use OCA\Mail\Listener\AddressCollectionListener; use OCA\Mail\Listener\DeleteDraftListener; use OCA\Mail\Listener\DraftMailboxCreatorListener; use OCA\Mail\Listener\FlagRepliedMessageListener; +use OCA\Mail\Listener\MessageDeletedCacheUpdaterListener; use OCA\Mail\Listener\SaveSentMessageListener; use OCA\Mail\Listener\TrashMailboxCreatorListener; use OCA\Mail\Service\Attachment\AttachmentService; @@ -125,6 +126,7 @@ class BootstrapSingleton { $dispatcher->addServiceListener(BeforeMessageDeletedEvent::class, TrashMailboxCreatorListener::class); $dispatcher->addServiceListener(DraftSavedEvent::class, DeleteDraftListener::class); + $dispatcher->addServiceListener(MessageDeletedEvent::class, MessageDeletedCacheUpdaterListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, AddressCollectionListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, DeleteDraftListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, FlagRepliedMessageListener::class); |