diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-03 19:02:09 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-29 10:21:22 +0300 |
commit | 39b3f14f4e2a7c1f02f130e2091fdd17a081aa91 (patch) | |
tree | 9ed8ce9aae743eb8dc32da9a59190a1a403695cb /lib/Model | |
parent | 640e6ce62fb0b9dca813693a0900367fcbfc8e21 (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.php | 29 |
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; } } |