summaryrefslogtreecommitdiff
path: root/mail/src
diff options
context:
space:
mode:
Diffstat (limited to 'mail/src')
-rw-r--r--mail/src/leap/mail/adaptors/soledad.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/src/leap/mail/adaptors/soledad.py b/mail/src/leap/mail/adaptors/soledad.py
index 2b1d2ff2..d114707e 100644
--- a/mail/src/leap/mail/adaptors/soledad.py
+++ b/mail/src/leap/mail/adaptors/soledad.py
@@ -688,7 +688,8 @@ class MessageWrapper(object):
"""
body_phash = self.hdoc.body
if not body_phash:
- return None
+ if self.cdocs:
+ return self.cdocs[1]
d = store.get_doc('C-' + body_phash)
d.addCallback(lambda doc: ContentDocWrapper(**doc.content))
return d