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-05-08 12:09:11 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-05-12 14:55:01 +0300
commitecea39df8ca8aca78a29339e16be356df540013e (patch)
treea274b979a0ce1bdca785854852fcd231fa5d89d9 /lib/Model
parent85577232d3cbbced45461892cfec925017b7006c (diff)
Simplify seen/unseen flag to the IMAP standard
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index 37f264f05..df9f4f69f 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -134,7 +134,7 @@ class IMAPMessage implements IMessage, JsonSerializable {
public function getFlags(): array {
$flags = $this->fetch->getFlags();
return [
- 'unseen' => !in_array(Horde_Imap_Client::FLAG_SEEN, $flags),
+ 'seen' => in_array(Horde_Imap_Client::FLAG_SEEN, $flags),
'flagged' => in_array(Horde_Imap_Client::FLAG_FLAGGED, $flags),
'answered' => in_array(Horde_Imap_Client::FLAG_ANSWERED, $flags),
'deleted' => in_array(Horde_Imap_Client::FLAG_DELETED, $flags),