Small optimization

This commit is contained in:
M66B 2023-01-26 18:33:34 +01:00
parent a429b17399
commit c8dddfd713
1 changed files with 4 additions and 1 deletions

View File

@ -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);