mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
New block sender from notification
This commit is contained in:
parent
3c6dd126ff
commit
7ca7f61f05
1 changed files with 4 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue