Check drafts on saving primary account only

pull/12/merge
M66B 6 years ago
parent 29ae761435
commit 20d60fafe8

@ -20,9 +20,13 @@
# hide the original source file name.
-renamesourcefileattribute SourceFile
#App
-keep class eu.faircode.email.**
-keepnames class eu.faircode.email.** { *; }
#Support library
-keep class android.support.v7.app.AppCompatViewInflater{ <init>(...); }
#JavaMail
-dontshrink
-keep class javax.** {*;}

@ -242,7 +242,7 @@ public class FragmentAccount extends Fragment {
}
}
}
if (!drafts)
if (account.primary && !drafts)
throw new MessagingException(getContext().getString(R.string.title_no_drafts));
} finally {
if (istore != null)

Loading…
Cancel
Save