mirror of https://github.com/M66B/FairEmail.git
Skip self on auto block sender
This commit is contained in:
parent
805fac5b8b
commit
6ee27090ce
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue