diff options
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/pixelated_mail.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py index fabb1ab4..8b07e996 100644 --- a/service/pixelated/adapter/pixelated_mail.py +++ b/service/pixelated/adapter/pixelated_mail.py @@ -262,8 +262,9 @@ class PixelatedMail: return self def mark_as_unread(self): - self.fdoc.content['flags'].remove(Status.PixelatedStatus.SEEN) - self.save() + if Status.PixelatedStatus.SEEN in self.fdoc.content['flags']: + self.fdoc.content['flags'].remove(Status.PixelatedStatus.SEEN) + self.save() return self def mark_as_not_recent(self): |