mirror of https://github.com/M66B/FairEmail.git
Outbox and POP3 have no deleted flag
This commit is contained in:
parent
73ecf877d6
commit
766710eade
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue