mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Optional inbox (2)
This commit is contained in:
@@ -1651,7 +1651,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
boolean archive = (move && (hasArchive && !inArchive && !inSent && !inTrash && !inJunk));
|
||||
boolean trash = (move || outbox || debug ||
|
||||
message.accountProtocol == EntityAccount.TYPE_POP);
|
||||
boolean junk = (move && hasJunk);
|
||||
boolean junk = (move && hasJunk && hasInbox);
|
||||
boolean inbox = (move && hasInbox && (inArchive || inTrash || inJunk));
|
||||
boolean keywords = (!message.folderReadOnly && message.uid != null &&
|
||||
message.accountProtocol == EntityAccount.TYPE_IMAP);
|
||||
@@ -6473,7 +6473,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
DB db = DB.getInstance(context);
|
||||
EntityFolder inbox = db.folder().getFolderByType(account, EntityFolder.INBOX);
|
||||
|
||||
if (inbox == null || !inbox.selectable)
|
||||
if (inbox == null)
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_inbox));
|
||||
|
||||
return inbox;
|
||||
|
||||
Reference in New Issue
Block a user