mirror of https://github.com/M66B/FairEmail.git
Small optimization
This commit is contained in:
parent
a429b17399
commit
c8dddfd713
|
@ -481,7 +481,10 @@ public class EntityOperation {
|
||||||
message.ui_hide = true;
|
message.ui_hide = true;
|
||||||
db.message().setMessageUiHide(message.id, message.ui_hide);
|
db.message().setMessageUiHide(message.id, message.ui_hide);
|
||||||
|
|
||||||
if (perform_expunge && account != null && account.isGmail()) {
|
if (perform_expunge &&
|
||||||
|
account != null &&
|
||||||
|
account.protocol == EntityAccount.TYPE_IMAP &&
|
||||||
|
account.isGmail()) {
|
||||||
EntityFolder source = db.folder().getFolder(message.folder);
|
EntityFolder source = db.folder().getFolder(message.folder);
|
||||||
if (source != null && EntityFolder.ARCHIVE.equals(source.type)) {
|
if (source != null && EntityFolder.ARCHIVE.equals(source.type)) {
|
||||||
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
||||||
|
|
Loading…
Reference in New Issue