From 139b4df844003d039dd6497536251adf83820569 Mon Sep 17 00:00:00 2001 From: Sebastian Krupinski Date: Thu, 25 Jun 2026 23:47:52 -0400 Subject: [PATCH] refactor: use seen instead of read Signed-off-by: Sebastian Krupinski --- shared/lib/Mail/Object/MessagePropertiesBaseAbstract.php | 2 +- shared/lib/Mail/Object/MessagePropertiesMutableAbstract.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/lib/Mail/Object/MessagePropertiesBaseAbstract.php b/shared/lib/Mail/Object/MessagePropertiesBaseAbstract.php index 624d54a..95e4d9f 100644 --- a/shared/lib/Mail/Object/MessagePropertiesBaseAbstract.php +++ b/shared/lib/Mail/Object/MessagePropertiesBaseAbstract.php @@ -282,7 +282,7 @@ abstract class MessagePropertiesBaseAbstract extends NodePropertiesBaseAbstract */ public function getFlags(): array { return $this->data[static::PROPERTY_FLAGS] ?? [ - 'read' => false, + 'seen' => false, 'starred' => false, 'important' => false, 'answered' => false, diff --git a/shared/lib/Mail/Object/MessagePropertiesMutableAbstract.php b/shared/lib/Mail/Object/MessagePropertiesMutableAbstract.php index e384d1b..7610fda 100644 --- a/shared/lib/Mail/Object/MessagePropertiesMutableAbstract.php +++ b/shared/lib/Mail/Object/MessagePropertiesMutableAbstract.php @@ -295,7 +295,7 @@ abstract class MessagePropertiesMutableAbstract extends MessagePropertiesBaseAbs public function setFlags(array $value): static { if (!isset($this->data[static::PROPERTY_FLAGS])) { $this->data[static::PROPERTY_FLAGS] = [ - 'read' => false, + 'seen' => false, 'starred' => false, 'important' => false, 'answered' => false, @@ -315,7 +315,7 @@ abstract class MessagePropertiesMutableAbstract extends MessagePropertiesBaseAbs public function setFlag(string $name, bool $value): static { if (!isset($this->data[static::PROPERTY_FLAGS])) { $this->data[static::PROPERTY_FLAGS] = [ - 'read' => false, + 'seen' => false, 'starred' => false, 'important' => false, 'answered' => false,