mirror of https://github.com/M66B/FairEmail.git
Mark trashed drafts read
This commit is contained in:
parent
913db34185
commit
4d70e1d0cb
|
@ -204,11 +204,15 @@ public class EntityOperation {
|
|||
if (source == null || target == null || source.id.equals(target.id))
|
||||
return;
|
||||
|
||||
if (EntityFolder.DRAFTS.equals(source.type) &&
|
||||
EntityFolder.TRASH.equals(target.type))
|
||||
autoread = true;
|
||||
|
||||
EntityLog.log(context, "Move message=" + message.id +
|
||||
"@" + new Date(message.received) +
|
||||
":" + message.subject +
|
||||
" source=" + source.id + ":" + source.name + "" +
|
||||
" target=" + target.id + ":" + target.name +
|
||||
" source=" + source.id + ":" + source.type + ":" + source.name + "" +
|
||||
" target=" + target.id + ":" + target.type + ":" + target.name +
|
||||
" auto read=" + autoread + " flag=" + autounflag + " importance=" + reset_importance);
|
||||
|
||||
if (autoread || autounflag || reset_importance)
|
||||
|
|
|
@ -4894,7 +4894,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
EntityOperation.queue(context, draft, EntityOperation.DELETE);
|
||||
else {
|
||||
EntityOperation.queue(context, draft, EntityOperation.ADD);
|
||||
EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id, true);
|
||||
EntityOperation.queue(context, draft, EntityOperation.MOVE, trash.id);
|
||||
}
|
||||
|
||||
getMainHandler().post(new Runnable() {
|
||||
|
|
Loading…
Reference in New Issue