From 89c1c8a57ca842a590bf7c5dfa992b1b9e3e5590 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 29 May 2019 15:04:18 +0200 Subject: [PATCH] Simplify reply all --- app/src/main/java/eu/faircode/email/EntityMessage.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityMessage.java b/app/src/main/java/eu/faircode/email/EntityMessage.java index 7aed635ad6..e3fbde52cd 100644 --- a/app/src/main/java/eu/faircode/email/EntityMessage.java +++ b/app/src/main/java/eu/faircode/email/EntityMessage.java @@ -163,14 +163,8 @@ public class EntityMessage implements Serializable { Address[] getAllRecipients(String via) { List
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) - addresses.addAll(Arrays.asList(to)); - } + if (to != null) + addresses.addAll(Arrays.asList(to)); if (cc != null) addresses.addAll(Arrays.asList(cc));