Export receipt type and sensitivity

This commit is contained in:
M66B 2023-09-22 20:05:55 +02:00
parent e8f36b6682
commit 6ddebf90f8
1 changed files with 10 additions and 0 deletions

View File

@ -244,8 +244,11 @@ public class EntityIdentity {
json.put("sign_default", sign_default); json.put("sign_default", sign_default);
json.put("encrypt_default", encrypt_default); json.put("encrypt_default", encrypt_default);
// not encrypt // not encrypt
if (receipt_type != null)
json.put("receipt_type", receipt_type);
// delivery_receipt // delivery_receipt
// read_receipt // read_receipt
json.put("sensitivity", sensitivity);
// not store_sent // not store_sent
// not sent_folder // not sent_folder
// not sign_key // not sign_key
@ -333,6 +336,12 @@ public class EntityIdentity {
if (json.has("encrypt_default")) if (json.has("encrypt_default"))
identity.encrypt_default = json.getBoolean("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; return identity;
} }
@ -387,6 +396,7 @@ public class EntityIdentity {
Objects.equals(i1.receipt_type, other.receipt_type) && Objects.equals(i1.receipt_type, other.receipt_type) &&
// delivery_receipt // delivery_receipt
// read_receipt // read_receipt
Objects.equals(i1.sensitivity, other.sensitivity) &&
// store_sent // store_sent
// sent_folder // sent_folder
Objects.equals(i1.sign_key, other.sign_key) && Objects.equals(i1.sign_key, other.sign_key) &&