Mark trashed drafts read

This commit is contained in:
M66B 2021-06-30 12:36:03 +02:00
parent 913db34185
commit 4d70e1d0cb
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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() {