mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Gmail account specials
This commit is contained in:
parent
6c3da926d0
commit
7635493db2
1 changed files with 12 additions and 10 deletions
|
@ -226,17 +226,19 @@ public class EntityOperation {
|
|||
db.message().setMessageImportance(similar.id, null);
|
||||
}
|
||||
|
||||
EntityAccount account = db.account().getAccount(message.account);
|
||||
if ((account != null && !account.isGmail()) ||
|
||||
!EntityFolder.ARCHIVE.equals(source.type) ||
|
||||
EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type))
|
||||
if (!message.ui_deleted)
|
||||
db.message().setMessageUiHide(message.id, true);
|
||||
if (source.account.equals(target.account)) {
|
||||
EntityAccount account = db.account().getAccount(message.account);
|
||||
if ((account != null && !account.isGmail()) ||
|
||||
!EntityFolder.ARCHIVE.equals(source.type) ||
|
||||
EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type))
|
||||
if (!message.ui_deleted)
|
||||
db.message().setMessageUiHide(message.id, true);
|
||||
|
||||
if (account != null && account.isGmail() &&
|
||||
EntityFolder.ARCHIVE.equals(source.type) &&
|
||||
!(EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type)))
|
||||
name = COPY;
|
||||
if (account != null && account.isGmail() &&
|
||||
EntityFolder.ARCHIVE.equals(source.type) &&
|
||||
!(EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type)))
|
||||
name = COPY;
|
||||
}
|
||||
|
||||
if (message.ui_snoozed != null &&
|
||||
(EntityFolder.ARCHIVE.equals(target.type) || EntityFolder.TRASH.equals(target.type))) {
|
||||
|
|
Loading…
Reference in a new issue