diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-08-30 12:19:54 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-09-04 12:47:29 +0300 |
commit | 90275abd7796a85c9107eddb7939ed8f1e569c46 (patch) | |
tree | 44ec8d5adb8c684031bdc3f1456cc9bdaca9f2bc /lib/Controller/MessagesController.php | |
parent | 0c59d64478ee20cd1f8371fdda489836af2ca5ce (diff) |
Clean up the code responsible for deleting a message
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-x | lib/Controller/MessagesController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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>, " |