From 6ddebf90f8e6a08a0503807a484dea4451befaa1 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 22 Sep 2023 20:05:55 +0200 Subject: [PATCH] Export receipt type and sensitivity --- .../main/java/eu/faircode/email/EntityIdentity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityIdentity.java b/app/src/main/java/eu/faircode/email/EntityIdentity.java index 707b7f7593..9b9e8f7b6d 100644 --- a/app/src/main/java/eu/faircode/email/EntityIdentity.java +++ b/app/src/main/java/eu/faircode/email/EntityIdentity.java @@ -244,8 +244,11 @@ public class EntityIdentity { json.put("sign_default", sign_default); json.put("encrypt_default", encrypt_default); // not encrypt + if (receipt_type != null) + json.put("receipt_type", receipt_type); // delivery_receipt // read_receipt + json.put("sensitivity", sensitivity); // not store_sent // not sent_folder // not sign_key @@ -333,6 +336,12 @@ public class EntityIdentity { if (json.has("encrypt_default")) identity.encrypt_default = json.getBoolean("encrypt_default"); + if (json.has("receipt_type")) + identity.receipt_type = json.getInt("receipt_type"); + + if (json.has("sensitivity")) + identity.sensitivity = json.getInt("sensitivity"); + return identity; } @@ -387,6 +396,7 @@ public class EntityIdentity { Objects.equals(i1.receipt_type, other.receipt_type) && // delivery_receipt // read_receipt + Objects.equals(i1.sensitivity, other.sensitivity) && // store_sent // sent_folder Objects.equals(i1.sign_key, other.sign_key) &&