Increase folder selected on queuing operation

pull/197/head
M66B 4 years ago
parent aa318743f1
commit 2b0d6cf59a

@ -1254,9 +1254,6 @@ class Core {
itarget.close(); itarget.close();
} }
if (EntityFolder.USER.equals(target.type))
db.folder().increaseSelectedCount(target.id, new Date().getTime());
// Delete junk contacts // Delete junk contacts
if (EntityFolder.JUNK.equals(target.type)) if (EntityFolder.JUNK.equals(target.type))
for (EntityMessage message : map.values()) { for (EntityMessage message : map.values()) {

@ -239,6 +239,10 @@ public class EntityOperation {
EntityMessage.snooze(context, message.id, null); EntityMessage.snooze(context, message.id, null);
} }
if (source.account.equals(target.account) &&
EntityFolder.USER.equals(target.type))
db.folder().increaseSelectedCount(target.id, new Date().getTime());
if (EntityFolder.JUNK.equals(source.type) && EntityFolder.INBOX.equals(target.type)) { if (EntityFolder.JUNK.equals(source.type) && EntityFolder.INBOX.equals(target.type)) {
List<EntityRule> rules = db.rule().getRules(target.id); List<EntityRule> rules = db.rule().getRules(target.id);
for (EntityRule rule : rules) for (EntityRule rule : rules)

Loading…
Cancel
Save