diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-09-25 22:04:23 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-09-25 22:14:47 +0300 |
commit | 5d59e85a936fb150f5226cf9617202a3362ea393 (patch) | |
tree | 100b7dd6701bd172537d80d5df2ba81ef25629c1 /lib/Controller/MessagesController.php | |
parent | e18386604921febd4fd8fd407c7a60e3757ad031 (diff) |
Specify which impl we expect
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 19dfc1d35..1dbf37ff4 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -31,6 +31,7 @@ namespace OCA\Mail\Controller; use OCA\Mail\Exception\ServiceException; use OCA\Mail\Http\AttachmentDownloadResponse; use OCA\Mail\Http\HtmlResponse; +use OCA\Mail\Model\IMAPMessage; use OCA\Mail\Service\AccountService; use OCA\Mail\Service\ContactsIntegration; use OCA\Mail\Service\IAccount; @@ -307,6 +308,7 @@ class MessagesController extends Controller { $attachmentIds = [$attachmentId]; if($attachmentId === 0) { // Save all attachments + /* @var $m IMAPMessage */ $m = $mailBox->getMessage($messageId); $attachmentIds = array_map(function($a){ return $a['id']; |