mirror of https://github.com/M66B/FairEmail.git
Skip fetch on cleanup seen
This commit is contained in:
parent
df06234fb8
commit
d6782c90b2
|
@ -669,7 +669,8 @@ public class EntityOperation {
|
|||
void cleanup(Context context, boolean fetch) {
|
||||
DB db = DB.getInstance(context);
|
||||
|
||||
EntityLog.log(context, "Cleanup op=" + id + "/" + name + " folder=" + folder + " message=" + message);
|
||||
EntityLog.log(context, "Cleanup op=" + id + "/" + name +
|
||||
" folder=" + folder + " message=" + message + " fetch=" + fetch);
|
||||
|
||||
if (message != null) {
|
||||
if (MOVE.equals(name) || DELETE.equals(name))
|
||||
|
@ -728,7 +729,7 @@ public class EntityOperation {
|
|||
if (SYNC.equals(name))
|
||||
db.folder().setFolderSyncState(folder, null);
|
||||
|
||||
if (fetch && message != null) {
|
||||
if (fetch && message != null && !SEEN.equals(name)) {
|
||||
EntityMessage m = db.message().getMessage(message);
|
||||
if (m == null || m.uid == null)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue