Revert "Revert "Refactoring""

This reverts commit 4c4689a840.
This commit is contained in:
M66B 2018-11-22 18:47:12 +01:00
parent 5b673c5ab4
commit 77030633fe
1 changed files with 3 additions and 2 deletions

View File

@ -611,6 +611,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
db.message().setMessageUiIgnored(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, seen);
}
db.setTransactionSuccessful();
} finally {
db.endTransaction();
@ -1008,8 +1009,8 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
db.message().setMessageUiHide(id, true);
EntityMessage message = db.message().getMessage(id);
EntityFolder spam = db.folder().getFolderByType(message.account, EntityFolder.JUNK);
EntityOperation.queue(db, message, EntityOperation.MOVE, spam.id);
EntityFolder junk = db.folder().getFolderByType(message.account, EntityFolder.JUNK);
EntityOperation.queue(db, message, EntityOperation.MOVE, junk.id);
db.setTransactionSuccessful();
} finally {