mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Outbox and POP3 have no deleted flag
This commit is contained in:
parent
73ecf877d6
commit
766710eade
1 changed files with 6 additions and 1 deletions
|
@ -406,7 +406,12 @@ public class EntityOperation {
|
|||
} else if (DELETE.equals(name)) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
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;
|
||||
db.message().setMessageUiHide(message.id, message.ui_hide);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue