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/Model
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-09-03 19:02:09 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-09-29 10:21:22 +0300
commit39b3f14f4e2a7c1f02f130e2091fdd17a081aa91 (patch)
tree9ed8ce9aae743eb8dc32da9a59190a1a403695cb /lib/Model
parent640e6ce62fb0b9dca813693a0900367fcbfc8e21 (diff)
Fix missing In-Reply-To and References header for replies
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/RepliedMessageData.php29
1 files changed, 7 insertions, 22 deletions
diff --git a/lib/Model/RepliedMessageData.php b/lib/Model/RepliedMessageData.php
index d12584874..0bdfcd411 100644
--- a/lib/Model/RepliedMessageData.php
+++ b/lib/Model/RepliedMessageData.php
@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace OCA\Mail\Model;
use OCA\Mail\Account;
+use OCA\Mail\Db\Message;
/**
* An immutable DTO that holds information about a message that is replied to
@@ -33,35 +34,19 @@ class RepliedMessageData {
/** @var Account */
private $account;
- /** @var string */
- private $folderId;
+ /** @var Message */
+ private $message;
- /** @var int */
- private $id;
-
- /**
- * @param Account $account
- * @param string $folderId
- * @param int $id
- */
- public function __construct(Account $account, string $folderId, int $id) {
+ public function __construct(Account $account, Message $message) {
$this->account = $account;
- $this->folderId = $folderId;
- $this->id = $id;
+ $this->message = $message;
}
- /**
- * @return Account
- */
public function getAccount(): Account {
return $this->account;
}
- public function getFolderId(): string {
- return $this->folderId;
- }
-
- public function getId(): int {
- return $this->id;
+ public function getMessage(): Message {
+ return $this->message;
}
}