Revert "Removed identity/self option"

This reverts commit 9195fc048d.
pull/183/head
M66B 5 years ago
parent a4cfd625d7
commit a775675681

@ -90,7 +90,7 @@ public class EntityIdentity {
@NonNull
public Boolean primary;
@NonNull
public Boolean self = true; // obsolete
public Boolean self = true;
@NonNull
public Boolean sender_extra = false;
public String sender_extra_regex;

@ -214,6 +214,7 @@ public class EntityMessage implements Serializable {
for (Address sender : senders)
for (TupleIdentityEx identity : identities)
if (identity.account == account &&
identity.self &&
identity.similarAddress(sender))
return true;
@ -234,6 +235,7 @@ public class EntityMessage implements Serializable {
for (Address address : new ArrayList<>(addresses))
for (TupleIdentityEx identity : identities)
if (identity.account == account &&
identity.self &&
identity.similarAddress(address))
addresses.remove(address);

@ -546,7 +546,6 @@
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_self_identity"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbPrimary" />
@ -826,7 +825,7 @@
tvUser,etUser,tvPassword,tilPassword,tvCaseSensitiveHint,btnCertificate,tvCertificate,btnOAuth,
tvRealm,etRealm,
cbUseIp,tvUseIpHint,tvEhlo,etEhlo,
cbSynchronize,cbPrimary,
cbSynchronize,cbPrimary,cbSelf,
cbSenderExtra,tvSenderExtra,etSenderExtra,tvSenderExtraHint,
tvReplyTo,etReplyTo,tvCc,etCc,tvCcHint,tvBcc,etBcc,tvBccHint,
cbUnicode,tvMaxSize,etMaxSize" />

Loading…
Cancel
Save