From 831be1df415686df90e7920811759239ff373aa7 Mon Sep 17 00:00:00 2001 From: hamza221 Date: Mon, 7 Aug 2023 12:48:32 +0200 Subject: [PATCH] fixup! add thread summary ui Signed-off-by: hamza221 --- lib/Controller/SettingsController.php | 1 + lib/Controller/ThreadController.php | 14 ++++++-------- src/components/LoadingSkeleton.vue | 2 +- src/components/Thread.vue | 21 ++++++++++++++++----- src/service/AiIntergrationsService.js | 11 ++++++++--- src/service/SettingsService.js | 3 ++- 6 files changed, 34 insertions(+), 18 deletions(-) diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index a742eda9d8..827d3aa681 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -119,6 +119,7 @@ public function deleteAntiSpamEmail(): JSONResponse { public function setAllowNewMailAccounts(bool $allowed) { $this->config->setAppValue('mail', 'allow_new_mail_accounts', $allowed ? 'yes' : 'no'); } + public function setEnabledThreadSummary(bool $enabled) { $this->config->setAppValue('mail', 'enabled_thread_summary', $enabled ? 'yes' : 'no'); } diff --git a/lib/Controller/ThreadController.php b/lib/Controller/ThreadController.php index 6fa5ade9cc..87cfd22576 100755 --- a/lib/Controller/ThreadController.php +++ b/lib/Controller/ThreadController.php @@ -44,16 +44,14 @@ class ThreadController extends Controller { private LoggerInterface $logger; - public function __construct(string $appName, - IRequest $request, - string $UserId, - AccountService $accountService, - IMailManager $mailManager, + public function __construct(string $appName, + IRequest $request, + string $UserId, + AccountService $accountService, + IMailManager $mailManager, AiIntegrationsService $aiIntergrationsService, - LoggerInterface $logger, - ) { + LoggerInterface $logger) { parent::__construct($appName, $request); - $this->currentUserId = $UserId; $this->accountService = $accountService; $this->mailManager = $mailManager; diff --git a/src/components/LoadingSkeleton.vue b/src/components/LoadingSkeleton.vue index 4ea521b75b..0a6aefb402 100644 --- a/src/components/LoadingSkeleton.vue +++ b/src/components/LoadingSkeleton.vue @@ -1,7 +1,7 @@