mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
New block sender from notification
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user