diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-02 15:08:15 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-02 15:08:15 +0300 |
commit | 3026e77224c11b4b474db43e9296192c538b518a (patch) | |
tree | 022d5f299c364033d8d43afc022bee10d746c037 /lib/Controller/MessagesController.php | |
parent | 9f4ae77963844b669944c773230315a004573f86 (diff) |
Fix missing but expected accountId and mailboxId on message JSON
This caused two bugs
* Reply all did not work (the account lookup failed because `undefined`
was used as ID)
* The preselected account in the reply composer was not automatically
set to the one from the original 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, 2 insertions, 0 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index df602bf94..ba284e76c 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -233,6 +233,8 @@ class MessagesController extends Controller { $a ); }, $json['attachments']); + $json['accountId'] = $account->getId(); + $json['mailboxId'] = $mailbox->getId(); $json['databaseId'] = $message->getId(); return new JSONResponse($json); |