mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 18:13:24 +02:00
Check account type for sent folder warning
This commit is contained in:
@@ -5204,8 +5204,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
if (draft.identity == null)
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_from_missing));
|
||||
|
||||
EntityAccount account = db.account().getAccount(draft.account);
|
||||
EntityFolder sent = db.folder().getFolderByType(draft.account, EntityFolder.SENT);
|
||||
if (sent == null)
|
||||
if (account != null && account.protocol == EntityAccount.TYPE_IMAP && sent == null)
|
||||
args.putBoolean("sent_missing", true);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user