mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Select primary account/identity
This commit is contained in:
@@ -2597,8 +2597,13 @@ public class FragmentCompose extends FragmentBase {
|
||||
long aid = args.getLong("account", -1);
|
||||
long iid = args.getLong("identity", -1);
|
||||
|
||||
if (aid < 0 && ref != null)
|
||||
aid = ref.account;
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user