mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Simplification
This commit is contained in:
parent
fb4e2d9f39
commit
8a99a6fb59
1 changed files with 3 additions and 5 deletions
|
@ -286,9 +286,6 @@ class Core {
|
|||
if (message != null)
|
||||
db.message().setMessageError(message.id, null);
|
||||
|
||||
if (EntityOperation.FETCH.equals(op.name))
|
||||
db.folder().setFolderSyncState(op.folder, "syncing");
|
||||
|
||||
db.operation().setOperationState(op.id, "executing");
|
||||
for (TupleOperationEx s : similar.keySet())
|
||||
db.operation().setOperationState(s.id, "executing");
|
||||
|
@ -562,8 +559,6 @@ class Core {
|
|||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
if (EntityOperation.FETCH.equals(op.name))
|
||||
db.folder().setFolderSyncState(op.folder, null);
|
||||
db.operation().setOperationState(op.id, null);
|
||||
for (TupleOperationEx s : similar.keySet())
|
||||
db.operation().setOperationState(s.id, null);
|
||||
|
@ -1206,6 +1201,8 @@ class Core {
|
|||
throw new IllegalArgumentException("account missing");
|
||||
|
||||
try {
|
||||
db.folder().setFolderSyncState(folder.id, "syncing");
|
||||
|
||||
if (removed) {
|
||||
db.message().deleteMessage(folder.id, uid);
|
||||
throw new MessageRemovedException("removed uid=" + uid);
|
||||
|
@ -1278,6 +1275,7 @@ class Core {
|
|||
|
||||
db.message().deleteMessage(folder.id, uid);
|
||||
} finally {
|
||||
db.folder().setFolderSyncState(folder.id, null);
|
||||
int count = MessageHelper.getMessageCount(ifolder);
|
||||
db.folder().setFolderTotal(folder.id, count < 0 ? null : count);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue