Skip self on auto block sender

This commit is contained in:
M66B 2022-11-16 09:23:38 +01:00
parent 805fac5b8b
commit 6ee27090ce
1 changed files with 6 additions and 3 deletions

View File

@ -233,6 +233,9 @@ public class EntityOperation {
(jargs.opt(3) == null || !jargs.optBoolean(3))) { (jargs.opt(3) == null || !jargs.optBoolean(3))) {
jargs.remove(3); jargs.remove(3);
EntityLog.log(context, "Auto block sender=" + MessageHelper.formatAddresses(message.from)); EntityLog.log(context, "Auto block sender=" + MessageHelper.formatAddresses(message.from));
List<TupleIdentityEx> identities = db.identity().getComposableIdentities(null);
if (!message.fromSelf(identities))
EntityContact.update(context, EntityContact.update(context,
message.account, message.identity, message.from, message.account, message.identity, message.from,
EntityContact.TYPE_JUNK, message.received); EntityContact.TYPE_JUNK, message.received);