diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-09-27 11:09:53 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-09-27 12:12:27 +0300 |
commit | 6db83df64aafabc2cf528181d4e483f27130d876 (patch) | |
tree | 55f79c61da77a583f084637c8b14ffbe17b4f35c /lib/Service/MailTransmission.php | |
parent | b5ddae4e1534bb45c5f81a9743d7c943d04712a5 (diff) |
Make \OCA\Mail\Model\RepliedMessageData nullable, not its properties
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Service/MailTransmission.php')
-rw-r--r-- | lib/Service/MailTransmission.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/MailTransmission.php b/lib/Service/MailTransmission.php index 65c39990e..a29d80a4c 100644 --- a/lib/Service/MailTransmission.php +++ b/lib/Service/MailTransmission.php @@ -117,12 +117,12 @@ class MailTransmission implements IMailTransmission { */ public function sendMessage(string $userId, NewMessageData $messageData, - RepliedMessageData $replyData, + RepliedMessageData $replyData = null, Alias $alias = null, int $draftUID = null) { $account = $messageData->getAccount(); - if ($replyData->isReply()) { + if ($replyData !== null) { $message = $this->buildReplyMessage($account, $messageData, $replyData); } else { $message = $this->buildNewMessage($account, $messageData); |