From 8eb68c416ad32b17ccb9dae9aae8cf9992b478a7 Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 23 Feb 2014 00:30:53 +0100 Subject: [PATCH] Avoid adding the same recipient twice when using "reply to all" Fixes issue 6056 --- src/com/fsck/k9/activity/MessageCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 8d93c1fa4..eabf2a395 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -2823,7 +2823,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, if (mAction == Action.REPLY_ALL) { if (message.getReplyTo().length > 0) { for (Address address : message.getFrom()) { - if (!mAccount.isAnIdentity(address)) { + if (!mAccount.isAnIdentity(address) && !Utility.arrayContains(replyToAddresses, address)) { addAddress(mToView, address); } }