diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-03 14:43:46 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-13 12:24:26 +0300 |
commit | 1bff124f2ec279032e2093d68b62057ab4459087 (patch) | |
tree | a619dcad47f97a9cc8832fd2961b63f5d742d24b /lib/AppInfo | |
parent | 437d06e6557827cf043d5364192b9ffd757676ab (diff) |
Build threads after each IMAP sync
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/Application.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index c64d6130b..aeb49f13c 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -32,6 +32,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\SynchronizationEvent; use OCA\Mail\Events\MessageDeletedEvent; use OCA\Mail\Events\MessageFlaggedEvent; use OCA\Mail\Events\MessageSentEvent; @@ -44,6 +45,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\AccountSynchronizedThreadUpdaterListener; use OCA\Mail\Listener\MessageCacheUpdaterListener; use OCA\Mail\Listener\NewMessageClassificationListener; use OCA\Mail\Listener\SaveSentMessageListener; @@ -111,6 +113,7 @@ class Application extends App { $dispatcher->addServiceListener(MessageSentEvent::class, SaveSentMessageListener::class); $dispatcher->addServiceListener(NewMessagesSynchronized::class, NewMessageClassificationListener::class); $dispatcher->addServiceListener(SaveDraftEvent::class, DraftMailboxCreatorListener::class); + $dispatcher->addServiceListener(SynchronizationEvent::class, AccountSynchronizedThreadUpdaterListener::class); $dispatcher->addServiceListener(UserDeletedEvent::class, UserDeletedListener::class); } } |