Special case identity selection

pull/206/head
M66B 3 years ago
parent 2b8f149dc6
commit 09ba8dc080

@ -4263,8 +4263,15 @@ public class FragmentCompose extends FragmentBase {
break;
}
Address[] refto = (ref == null ? null
: ref.replySelf(data.identities, ref.account) ? ref.from : ref.to);
if (ref != null) {
Address[] refto;
boolean self = ref.replySelf(data.identities, ref.account);
if (ref.to == null || ref.to.length == 0 || self)
refto = ref.from;
else
refto = ref.to;
Log.i("Ref self=" + self +
" to=" + MessageHelper.formatAddresses(refto));
if (refto != null && refto.length > 0) {
if (selected == null)
for (Address sender : refto)
@ -4304,6 +4311,7 @@ public class FragmentCompose extends FragmentBase {
break;
}
}
}
if (selected == null)
for (EntityIdentity identity : data.identities)

Loading…
Cancel
Save