diff options
Diffstat (limited to 'service/pixelated/adapter/soledad')
-rw-r--r-- | service/pixelated/adapter/soledad/soledad_writer_mixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/soledad/soledad_writer_mixin.py b/service/pixelated/adapter/soledad/soledad_writer_mixin.py index 9c5eb47a..8e7a46f2 100644 --- a/service/pixelated/adapter/soledad/soledad_writer_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_writer_mixin.py @@ -21,7 +21,7 @@ class SoledadWriterMixin(SoledadDbFacadeMixin, object): def mark_all_as_not_recent(self): for mailbox in ['INBOX', 'DRAFTS', 'SENT', 'TRASH']: rct = self.get_recent_by_mbox(mailbox) - if len(rct) == 0: + if not rct or not rct[0].content['rct']: return rct = rct[0] rct.content['rct'] = [] |