Small optimization

pull/212/head
M66B 2 years ago
parent a429b17399
commit c8dddfd713

@ -481,7 +481,10 @@ public class EntityOperation {
message.ui_hide = true;
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);
if (source != null && EntityFolder.ARCHIVE.equals(source.type)) {
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);

Loading…
Cancel
Save