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
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-12-04 12:59:39 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-12-05 16:56:31 +0300
commit8b157d7b32fd74b55b8b48b24daa5126444912ad (patch)
treeb3b9f3cb29bc4f54fc47411c6bcd4e516457ae81 /lib
parent4c0a95db63d08652b93a5f7ecd7f4ef79787c584 (diff)
Add Vue drafts view
* Show draft messages as such * Show the composer for draft messages * Patch the currently edited draft UID Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/AccountsController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Controller/AccountsController.php b/lib/Controller/AccountsController.php
index 70332c758..cc20d454d 100644
--- a/lib/Controller/AccountsController.php
+++ b/lib/Controller/AccountsController.php
@@ -287,18 +287,18 @@ class AccountsController extends Controller {
* @param int $uid
* @return JSONResponse
*/
- public function draft(int $accountId, string $subject = null, string $body, string $to, string $cc, string $bcc, int $uid = null): JSONResponse {
- if (is_null($uid)) {
+ public function draft(int $accountId, string $subject = null, string $body, string $to, string $cc, string $bcc, int $draftUID = null): JSONResponse {
+ if (is_null($draftUID)) {
$this->logger->info("Saving a new draft in account <$accountId>");
} else {
- $this->logger->info("Updating draft <$uid> in account <$accountId>");
+ $this->logger->info("Updating draft <$draftUID> in account <$accountId>");
}
$account = $this->accountService->find($this->currentUserId, $accountId);
$messageData = NewMessageData::fromRequest($account, $to, $cc, $bcc, $subject, $body, []);
try {
- $newUID = $this->mailTransmission->saveDraft($messageData, $uid);
+ $newUID = $this->mailTransmission->saveDraft($messageData, $draftUID);
return new JSONResponse([
'uid' => $newUID,
]);