summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/leap_backend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/leap_backend.py b/backends/leap_backend.py
index 9a2f6a20..3d423f5d 100644
--- a/backends/leap_backend.py
+++ b/backends/leap_backend.py
@@ -137,7 +137,8 @@ class LeapSyncTarget(HTTPSyncTarget):
# decrypt after receiving from server.
if not self._soledad:
raise NoSoledadInstance()
- if not self._soledad.is_encrypted_sym(entry['content']):
+ enc_json = json.loads(entry['content'])['_encrypted_json']
+ if not self._soledad.is_encrypted_sym(enc_json):
raise DocumentNotEncrypted(
"Incoming document from sync is not encrypted.")
doc = LeapDocument(entry['id'], entry['rev'],