Allow accounts without inbox

This commit is contained in:
M66B
2021-02-07 15:36:26 +01:00
parent 17e74fc1b6
commit 0f32aa66a8
4 changed files with 23 additions and 5 deletions

View File

@@ -6469,7 +6469,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)
if (inbox == null || !inbox.selectable)
throw new IllegalArgumentException(context.getString(R.string.title_no_inbox));
return inbox;