mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Limit identities to accounts with a drafts folder
This commit is contained in:
@@ -1384,7 +1384,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
if ("edit".equals(action))
|
||||
throw new IllegalStateException("Draft not found hide=" + (result.draft != null));
|
||||
|
||||
List<TupleIdentityEx> identities = db.identity().getIdentities(true);
|
||||
List<TupleIdentityEx> identities = db.identity().getComposableIdentities(true);
|
||||
|
||||
EntityMessage ref = db.message().getMessage(reference);
|
||||
if (ref == null) {
|
||||
@@ -1649,7 +1649,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
@Override
|
||||
protected List<TupleIdentityEx> onExecute(Context context, Bundle args) {
|
||||
DB db = DB.getInstance(context);
|
||||
List<TupleIdentityEx> identities = db.identity().getIdentities(true);
|
||||
List<TupleIdentityEx> identities = db.identity().getComposableIdentities(true);
|
||||
if (identities == null)
|
||||
identities = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user