Fixed reply self

This commit is contained in:
M66B 2019-09-27 09:17:53 +02:00
parent b6bbe9fdc9
commit e2db164ce9
1 changed files with 3 additions and 2 deletions

View File

@ -163,8 +163,9 @@ public class EntityMessage implements Serializable {
} }
boolean replySelf(List<TupleIdentityEx> identities) { boolean replySelf(List<TupleIdentityEx> identities) {
if (identities != null && from != null) Address[] senders = (reply == null || reply.length == 0 ? from : reply);
for (Address sender : from) if (identities != null && senders != null)
for (Address sender : senders)
for (TupleIdentityEx identity : identities) for (TupleIdentityEx identity : identities)
if (identity.similarAddress(sender)) if (identity.similarAddress(sender))
return true; return true;