mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 04:45:50 +01:00
Fixes
This commit is contained in:
@@ -1318,9 +1318,9 @@ class Core {
|
||||
if (uid == null)
|
||||
throw new IllegalArgumentException("move: uid not found");
|
||||
|
||||
if (draft) {
|
||||
if (draft || duplicate) {
|
||||
Message icopy = itarget.getMessageByUID(uid);
|
||||
if (icopy != null)
|
||||
if (icopy == null)
|
||||
throw new IllegalArgumentException("move: gone uid=" + uid);
|
||||
|
||||
// Mark read
|
||||
|
||||
@@ -196,9 +196,6 @@ public class EntityOperation {
|
||||
jargs.remove(2);
|
||||
}
|
||||
|
||||
jargs.put(1, autoread);
|
||||
jargs.put(3, autounflag);
|
||||
|
||||
EntityFolder source = db.folder().getFolder(message.folder);
|
||||
EntityFolder target = db.folder().getFolder(jargs.getLong(0));
|
||||
if (source == null || target == null || source.id.equals(target.id))
|
||||
@@ -208,6 +205,9 @@ public class EntityOperation {
|
||||
EntityFolder.TRASH.equals(target.type))
|
||||
autoread = true;
|
||||
|
||||
jargs.put(1, autoread);
|
||||
jargs.put(3, autounflag);
|
||||
|
||||
EntityLog.log(context, "Move message=" + message.id +
|
||||
"@" + new Date(message.received) +
|
||||
":" + message.subject +
|
||||
|
||||
Reference in New Issue
Block a user