Always unhide on move

This commit is contained in:
M66B 2021-04-17 12:22:27 +02:00
parent 7c2c6addeb
commit 4c64edcb0a
3 changed files with 1 additions and 5 deletions

View File

@ -4530,8 +4530,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
db.message().setMessageSnoozed(message.id, hide ? Long.MAX_VALUE : null);
db.message().setMessageUiIgnored(message.id, true);
if (!hide)
db.message().setMessageUiHide(message.id, false);
EntityMessage.snooze(context, message.id, hide ? Long.MAX_VALUE : null);
db.setTransactionSuccessful();

View File

@ -3453,7 +3453,6 @@ class Core {
}
if (message.ui_hide &&
message.ui_snoozed == null &&
(message.ui_busy == null || message.ui_busy < new Date().getTime()) &&
db.operation().getOperationCount(folder.id, message.id) == 0 &&
db.operation().getOperationCount(folder.id, EntityOperation.PURGE) == 0) {

View File

@ -292,8 +292,7 @@ public class EntityOperation {
message.ui_flagged = false;
message.color = null;
}
if (message.ui_snoozed == null)
message.ui_hide = false;
message.ui_hide = false;
message.ui_browsed = false;
message.error = null;
message.id = db.message().insertMessage(message);