Cloud sync: compare account/identity

This commit is contained in:
M66B 2023-01-21 11:30:55 +01:00
parent 835f067a4d
commit 5c67299580
2 changed files with 8 additions and 8 deletions

View File

@ -482,7 +482,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
a1.unicode == other.unicode &&
Objects.equals(a1.conditions, other.conditions) &&
(!state || Objects.equals(a1.quota_usage, other.quota_usage)) &&
Objects.equals(a1.quota_limit, other.quota_limit) &&
(!state || Objects.equals(a1.quota_limit, other.quota_limit)) &&
Objects.equals(a1.created, other.created) &&
Objects.equals(a1.tbd, other.tbd) &&
// thread
@ -491,11 +491,11 @@ public class EntityAccount extends EntityOrder implements Serializable {
(!state || Objects.equals(a1.error, other.error)) &&
(!state || Objects.equals(a1.last_connected, other.last_connected)) &&
(!state || Objects.equals(a1.backoff_until, other.backoff_until)) &&
Objects.equals(a1.max_size, other.max_size) &&
Objects.equals(a1.capabilities, other.capabilities) &&
Objects.equals(a1.capability_idle, other.capability_idle) &&
Objects.equals(a1.capability_utf8, other.capability_utf8) &&
Objects.equals(a1.capability_uidl, other.capability_uidl) &&
(!state || Objects.equals(a1.max_size, other.max_size)) &&
(!state || Objects.equals(a1.capabilities, other.capabilities)) &&
(!state || Objects.equals(a1.capability_idle, other.capability_idle)) &&
(!state || Objects.equals(a1.capability_utf8, other.capability_utf8)) &&
(!state || Objects.equals(a1.capability_uidl, other.capability_uidl)) &&
(!state || Objects.equals(a1.last_modified, other.last_modified)));
}

View File

@ -333,7 +333,7 @@ public class EntityIdentity {
return (Objects.equals(i1.uuid, other.uuid) &&
i1.name.equals(other.name) &&
i1.email.equals(other.email) &&
Objects.equals(i1.account, other.account) &&
(!state || Objects.equals(i1.account, other.account)) &&
Objects.equals(i1.display, other.display) &&
Objects.equals(i1.color, other.color) &&
Objects.equals(i1.signature, other.signature) &&
@ -377,7 +377,7 @@ public class EntityIdentity {
(!state || Objects.equals(i1.state, other.state)) &&
(!state || Objects.equals(i1.error, other.error)) &&
(!state || Objects.equals(i1.last_connected, other.last_connected)) &&
Objects.equals(i1.max_size, other.max_size) &&
(!state || Objects.equals(i1.max_size, other.max_size)) &&
(!state || Objects.equals(i1.last_modified, other.last_modified)));
}