mirror of https://github.com/M66B/FairEmail.git
Select primary account/identity
This commit is contained in:
parent
584fb600b6
commit
c678e37bbf
|
@ -2597,7 +2597,12 @@ public class FragmentCompose extends FragmentBase {
|
|||
long aid = args.getLong("account", -1);
|
||||
long iid = args.getLong("identity", -1);
|
||||
|
||||
if (aid < 0 && ref != null)
|
||||
if (aid < 0)
|
||||
if (ref == null) {
|
||||
EntityAccount primary = db.account().getPrimaryAccount();
|
||||
if (primary != null)
|
||||
aid = primary.id;
|
||||
} else
|
||||
aid = ref.account;
|
||||
if (iid < 0 && ref != null && ref.identity != null)
|
||||
iid = ref.identity;
|
||||
|
|
Loading…
Reference in New Issue