mirror of https://github.com/M66B/FairEmail.git
parent
5b673c5ab4
commit
77030633fe
|
@ -611,6 +611,7 @@ 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();
|
||||||
|
@ -1008,8 +1009,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 spam = db.folder().getFolderByType(message.account, EntityFolder.JUNK);
|
EntityFolder junk = db.folder().getFolderByType(message.account, EntityFolder.JUNK);
|
||||||
EntityOperation.queue(db, message, EntityOperation.MOVE, spam.id);
|
EntityOperation.queue(db, message, EntityOperation.MOVE, junk.id);
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue