From 13b816ac66f5932a80607bff57d75e67e75dadb9 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 1 Jun 2021 16:45:23 +0200 Subject: Move create and update tag to mail manager Signed-off-by: Daniel Kesselberg --- lib/Controller/MessagesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Controller/MessagesController.php') diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index 548ffa713..a39de7001 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -671,7 +671,7 @@ class MessagesController extends Controller { try { $tag = $this->mailManager->getTagByImapLabel($imapLabel, $this->currentUserId); - } catch (DoesNotExistException $e) { + } catch (ClientException $e) { return new JSONResponse([], Http::STATUS_FORBIDDEN); } @@ -702,7 +702,7 @@ class MessagesController extends Controller { try { $tag = $this->mailManager->getTagByImapLabel($imapLabel, $this->currentUserId); - } catch (DoesNotExistException $e) { + } catch (ClientException $e) { return new JSONResponse([], Http::STATUS_FORBIDDEN); } -- cgit v1.2.3