From ddb31ebaf28e9a115b040847a6bdd2870c674577 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 30 Apr 2021 17:30:04 +0200 Subject: [PATCH] Export/import identity internal domains --- app/src/main/java/eu/faircode/email/EntityIdentity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityIdentity.java b/app/src/main/java/eu/faircode/email/EntityIdentity.java index 8ec2d85188..00791c22cb 100644 --- a/app/src/main/java/eu/faircode/email/EntityIdentity.java +++ b/app/src/main/java/eu/faircode/email/EntityIdentity.java @@ -210,6 +210,7 @@ public class EntityIdentity { json.put("replyto", replyto); json.put("cc", cc); json.put("bcc", bcc); + json.put("internal", internal); json.put("unicode", unicode); // not plain_only @@ -283,6 +284,8 @@ public class EntityIdentity { identity.cc = json.getString("cc"); if (json.has("bcc") && !json.isNull("bcc")) identity.bcc = json.getString("bcc"); + if (json.has("internal") && !json.isNull("internal")) + identity.internal = json.getString("internal"); if (json.has("unicode")) identity.unicode = json.getBoolean("unicode"); @@ -324,6 +327,7 @@ public class EntityIdentity { Objects.equals(this.replyto, other.replyto) && Objects.equals(this.cc, other.cc) && Objects.equals(this.bcc, other.bcc) && + Objects.equals(this.internal, other.internal) && Objects.equals(this.sign_key, other.sign_key) && Objects.equals(this.sign_key_alias, other.sign_key_alias) && Objects.equals(this.state, other.state) &&