diff options
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-x | lib/Controller/MessagesController.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index 7e813bbe6..ef6357835 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -236,6 +236,23 @@ class MessagesController extends Controller { /** * @NoAdminRequired + * @NoCSRFRequired + * @TrapError + * + * @param int $accountId + * @param string $folderId + * + * @return JSONResponse + * @throws ClientException + */ + public function getThread(int $accountId, int $id): JSONResponse { + $account = $this->accountService->find($this->currentUserId, $accountId); + + return new JSONResponse($this->mailManager->getThread($account, $id)); + } + + /** + * @NoAdminRequired * @TrapError * * @param int $accountId |