Skip to content

Commit

Permalink
fixup! add thread summary ui
Browse files Browse the repository at this point in the history
Signed-off-by: hamza221 <[email protected]>
  • Loading branch information
hamza221 committed Aug 1, 2023
1 parent 8b9e47b commit 03700e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Controller/ThreadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function delete(int $id): JSONResponse {
/**
* @NoAdminRequired
*
* @param int $id
* @param string $id
* @param int $accountId
*
* @return JSONResponse
Expand All @@ -134,7 +134,7 @@ public function summarize(string $id, int $accountId): JSONResponse {
try {
$account = $this->accountService->find($this->currentUserId, $accountId);
$messages = $this->mailManager->getThread($account, $id);
} catch (DoesNotExistException $e) {
} catch (ClientException $e) {
return new JSONResponse([], Http::STATUS_FORBIDDEN);
}

Expand All @@ -151,7 +151,7 @@ public function summarize(string $id, int $accountId): JSONResponse {
return new JSONResponse([], Http::STATUS_NO_CONTENT);
}

return new JSONResponse($summary);
return new JSONResponse([$summary]);
}

}

0 comments on commit 03700e7

Please sign in to comment.