1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 07:23:03 +00:00

New block sender from notification

This commit is contained in:
M66B 2021-12-17 14:07:48 +01:00
parent 3c6dd126ff
commit 7ca7f61f05

View file

@ -290,11 +290,10 @@ public class ServiceUI extends IntentService {
EntityOperation.queue(this, message, EntityOperation.MOVE, junk.id);
if (block_sender) {
EntityRule rule = EntityRule.blockSender(this, message, junk, false);
if (rule != null)
rule.id = db.rule().insertRule(rule);
}
if (block_sender)
EntityContact.update(this,
message.account, message.from,
EntityContact.TYPE_JUNK, message.received);
db.setTransactionSuccessful();
} finally {