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,9 +233,12 @@ 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));
EntityContact.update(context,
message.account, message.identity, message.from, List<TupleIdentityEx> identities = db.identity().getComposableIdentities(null);
EntityContact.TYPE_JUNK, message.received); if (!message.fromSelf(identities))
EntityContact.update(context,
message.account, message.identity, message.from,
EntityContact.TYPE_JUNK, message.received);
} }
if (EntityFolder.DRAFTS.equals(source.type) && if (EntityFolder.DRAFTS.equals(source.type) &&