Contact: store last used identity

This commit is contained in:
M66B
2022-04-18 23:12:24 +02:00
parent 7764b6450f
commit 0431c7c27c
10 changed files with 2776 additions and 12 deletions

View File

@@ -273,8 +273,10 @@ public class EntityOperation {
if (rule.isBlockingSender(message, source))
db.rule().deleteRule(rule.id);
EntityContact.delete(context, message.account, message.from, EntityContact.TYPE_JUNK);
EntityContact.update(context, message.account, message.from, EntityContact.TYPE_NO_JUNK, message.received);
EntityContact.delete(context, message.account, message.from,
EntityContact.TYPE_JUNK);
EntityContact.update(context, message.account, message.identity, message.from,
EntityContact.TYPE_NO_JUNK, message.received);
}
if (EntityFolder.JUNK.equals(target.type))