Revert "Refactoring"

This reverts commit 6be6c102d8.
This commit is contained in:
M66B 2018-11-22 18:43:16 +01:00
parent 6be6c102d8
commit 4c4689a840
1 changed files with 2 additions and 3 deletions

View File

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