diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 18:21:54 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 18:41:14 +0300 |
commit | 38ad0d54866c81b391906da32a7f2fb8bfda1b48 (patch) | |
tree | 0f2de58f800b152b2f6c0d84dd53f0b54b76cb66 /lib/AppInfo | |
parent | f36b56e9d195af4203304ed712b263d01f1e67eb (diff) |
Update the message cache when a message is flagged
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/BootstrapSingleton.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/AppInfo/BootstrapSingleton.php b/lib/AppInfo/BootstrapSingleton.php index cf0afa67d..c40c80f57 100644 --- a/lib/AppInfo/BootstrapSingleton.php +++ b/lib/AppInfo/BootstrapSingleton.php @@ -32,6 +32,7 @@ use OCA\Mail\Contracts\IUserPreferences; use OCA\Mail\Events\BeforeMessageDeletedEvent; use OCA\Mail\Events\DraftSavedEvent; use OCA\Mail\Events\MessageDeletedEvent; +use OCA\Mail\Events\MessageFlaggedEvent; use OCA\Mail\Events\MessageSentEvent; use OCA\Mail\Events\SaveDraftEvent; use OCA\Mail\Http\Middleware\ErrorMiddleware; @@ -41,7 +42,7 @@ use OCA\Mail\Listener\DeleteDraftListener; use OCA\Mail\Listener\DraftMailboxCreatorListener; use OCA\Mail\Listener\FlagRepliedMessageListener; use OCA\Mail\Listener\InteractionListener; -use OCA\Mail\Listener\MessageDeletedCacheUpdaterListener; +use OCA\Mail\Listener\MessageCacheUpdaterListener; use OCA\Mail\Listener\SaveSentMessageListener; use OCA\Mail\Listener\TrashMailboxCreatorListener; use OCA\Mail\Service\Attachment\AttachmentService; @@ -125,7 +126,8 @@ class BootstrapSingleton { $dispatcher->addServiceListener(BeforeMessageDeletedEvent::class, TrashMailboxCreatorListener::class); $dispatcher->addServiceListener(DraftSavedEvent::class, DeleteDraftListener::class); - $dispatcher->addServiceListener(MessageDeletedEvent::class, MessageDeletedCacheUpdaterListener::class); + $dispatcher->addServiceListener(MessageFlaggedEvent::class, MessageCacheUpdaterListener::class); + $dispatcher->addServiceListener(MessageDeletedEvent::class, MessageCacheUpdaterListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, AddressCollectionListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, DeleteDraftListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, FlagRepliedMessageListener::class); |