mirror of https://github.com/M66B/FairEmail.git
Simplify reply all
This commit is contained in:
parent
62af22cb51
commit
89c1c8a57c
|
@ -163,14 +163,8 @@ public class EntityMessage implements Serializable {
|
||||||
Address[] getAllRecipients(String via) {
|
Address[] getAllRecipients(String via) {
|
||||||
List<Address> addresses = new ArrayList<>();
|
List<Address> addresses = new ArrayList<>();
|
||||||
|
|
||||||
String r = null;
|
|
||||||
Address[] replying = (reply == null || reply.length == 0 ? from : reply);
|
|
||||||
if (replying != null && replying.length == 1)
|
|
||||||
r = MessageHelper.canonicalAddress(((InternetAddress) replying[0]).getAddress());
|
|
||||||
if (r == null && !r.equals(via)) {
|
|
||||||
if (to != null)
|
if (to != null)
|
||||||
addresses.addAll(Arrays.asList(to));
|
addresses.addAll(Arrays.asList(to));
|
||||||
}
|
|
||||||
|
|
||||||
if (cc != null)
|
if (cc != null)
|
||||||
addresses.addAll(Arrays.asList(cc));
|
addresses.addAll(Arrays.asList(cc));
|
||||||
|
|
Loading…
Reference in New Issue