Prevent seen without uid

pull/147/head
M66B 6 years ago
parent 898c30f4bf
commit 2f6b18cd61

@ -157,8 +157,9 @@ public class EntityOperation {
cal_keep.set(Calendar.MILLISECOND, 0);
// Create copy without uid in target folder
// Message with same msgid can be in archive and source folder
// Message with same msgid can be in archive
if (message.uid != null &&
message.ui_seen &&
target.synchronize &&
message.received > cal_keep.getTimeInMillis() &&
db.message().countMessageByMsgId(target.id, message.msgid) == 0) {

@ -1933,6 +1933,7 @@ public class FragmentCompose extends FragmentEx {
EntityOperation.queue(context, db, draft, EntityOperation.DELETE);
else {
EntityOperation.queue(context, db, draft, EntityOperation.SEEN, true);
draft.ui_seen = true;
EntityOperation.queue(context, db, draft, EntityOperation.MOVE, trash.id);
}

Loading…
Cancel
Save