mirror of https://github.com/M66B/FairEmail.git
Skip self on auto block sender
This commit is contained in:
parent
805fac5b8b
commit
6ee27090ce
|
@ -233,9 +233,12 @@ public class EntityOperation {
|
|||
(jargs.opt(3) == null || !jargs.optBoolean(3))) {
|
||||
jargs.remove(3);
|
||||
EntityLog.log(context, "Auto block sender=" + MessageHelper.formatAddresses(message.from));
|
||||
EntityContact.update(context,
|
||||
message.account, message.identity, message.from,
|
||||
EntityContact.TYPE_JUNK, message.received);
|
||||
|
||||
List<TupleIdentityEx> identities = db.identity().getComposableIdentities(null);
|
||||
if (!message.fromSelf(identities))
|
||||
EntityContact.update(context,
|
||||
message.account, message.identity, message.from,
|
||||
EntityContact.TYPE_JUNK, message.received);
|
||||
}
|
||||
|
||||
if (EntityFolder.DRAFTS.equals(source.type) &&
|
||||
|
|
Loading…
Reference in New Issue