Avoid adding the same recipient twice when using "reply to all"

Fixes issue 6056
This commit is contained in:
cketti 2014-02-23 00:30:53 +01:00
parent dd5ac0f1c4
commit 8eb68c416a

View file

@ -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);
}
}