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-10-31 10:44:24 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-31 10:44:24 +0300
commit470f77170eb603838c07815ebccb28545d02a2ac (patch)
tree0578454581719103de36b4503b54ab6384ed6aa5 /lib
parent5cc416f1d47848b1ca1150a46513427110a8289e (diff)
Upload local attachments and add them to the attachment list
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/MailTransmission.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/MailTransmission.php b/lib/Service/MailTransmission.php
index 4737e1e27..064cf6d63 100644
--- a/lib/Service/MailTransmission.php
+++ b/lib/Service/MailTransmission.php
@@ -211,7 +211,7 @@ class MailTransmission implements IMailTransmission {
*/
private function handleAttachments(string $userId, NewMessageData $messageData, IMessage $message) {
foreach ($messageData->getAttachments() as $attachment) {
- if (isset($attachment['isLocal']) && $attachment['isLocal'] === 'true') {
+ if (isset($attachment['isLocal']) && $attachment['isLocal']) {
$this->handleLocalAttachment($userId, $attachment, $message);
} else {
$this->handleCloudAttachment($attachment, $message);