From 90275abd7796a85c9107eddb7939ed8f1e569c46 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 30 Aug 2019 11:19:54 +0200 Subject: Clean up the code responsible for deleting a message Signed-off-by: Christoph Wurst --- lib/Controller/MessagesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Controller/MessagesController.php') diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index 94dce68da..04fcac35d 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -340,7 +340,7 @@ class MessagesController extends Controller { $this->logger->debug("deleting message <$id> of folder <$folderId>, account <$accountId>"); try { $account = $this->getAccount($accountId); - $account->deleteMessage(base64_decode($folderId), $id); + $this->mailManager->deleteMessage($account, base64_decode($folderId), $id); return new JSONResponse(); } catch (DoesNotExistException $e) { $this->logger->error("could not delete message <$id> of folder <$folderId>, " -- cgit v1.2.3