mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Cancel snooze on moving to archive/trash
This commit is contained in:
parent
efb2107fd1
commit
9cbda608dc
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ public class EntityOperation {
|
|||
if (!EntityFolder.ARCHIVE.equals(source.type) || EntityFolder.TRASH.equals(target.type))
|
||||
db.message().setMessageUiHide(message.id, new Date().getTime());
|
||||
|
||||
if (message.ui_snoozed != null &&
|
||||
(EntityFolder.ARCHIVE.equals(target.type) || EntityFolder.TRASH.equals(target.type))) {
|
||||
message.ui_snoozed = null;
|
||||
EntityMessage.snooze(context, message.id, null);
|
||||
}
|
||||
|
||||
Calendar cal_keep = Calendar.getInstance();
|
||||
cal_keep.add(Calendar.DAY_OF_MONTH, -target.keep_days);
|
||||
cal_keep.set(Calendar.HOUR_OF_DAY, 0);
|
||||
|
|
Loading…
Reference in a new issue