|
|
|
@ -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 (account != null && account.isGmail() &&
|
|
|
|
|
EntityFolder.ARCHIVE.equals(source.type) &&
|
|
|
|
|
!(EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type)))
|
|
|
|
|
name = COPY;
|
|
|
|
|
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 (message.ui_snoozed != null &&
|
|
|
|
|
(EntityFolder.ARCHIVE.equals(target.type) || EntityFolder.TRASH.equals(target.type))) {
|
|
|
|
|