Outbox and POP3 have no deleted flag

This commit is contained in:
M66B 2022-01-13 14:30:20 +01:00
parent 73ecf877d6
commit 766710eade
1 changed files with 6 additions and 1 deletions

View File

@ -406,7 +406,12 @@ public class EntityOperation {
} else if (DELETE.equals(name)) { } else if (DELETE.equals(name)) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean perform_expunge = prefs.getBoolean("perform_expunge", true); boolean perform_expunge = prefs.getBoolean("perform_expunge", true);
if (perform_expunge) {
EntityAccount account = db.account().getAccount(message.account);
if (perform_expunge ||
account == null ||
account.protocol != EntityAccount.TYPE_IMAP) {
message.ui_hide = true; message.ui_hide = true;
db.message().setMessageUiHide(message.id, message.ui_hide); db.message().setMessageUiHide(message.id, message.ui_hide);
} else { } else {