Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-08-30 12:19:54 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-09-04 12:47:29 +0300
commit90275abd7796a85c9107eddb7939ed8f1e569c46 (patch)
tree44ec8d5adb8c684031bdc3f1456cc9bdaca9f2bc /lib/Controller/MessagesController.php
parent0c59d64478ee20cd1f8371fdda489836af2ca5ce (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-xlib/Controller/MessagesController.php2
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>, "