fix(mail): remove duplicate recipients in draft
parent
9150bdd768
commit
ec1a01e316
|
@ -251,10 +251,10 @@ static NSArray *infoKeys = nil;
|
||||||
NSRange r;
|
NSRange r;
|
||||||
BOOL valid;
|
BOOL valid;
|
||||||
|
|
||||||
identities = [[[self clientObject] mailAccountFolder] identities];
|
if ([from length])
|
||||||
if ([identities count])
|
|
||||||
{
|
{
|
||||||
if ([from length])
|
identities = [[[self clientObject] mailAccountFolder] identities];
|
||||||
|
if ([identities count])
|
||||||
{
|
{
|
||||||
allIdentities = [identities objectEnumerator];
|
allIdentities = [identities objectEnumerator];
|
||||||
valid = NO;
|
valid = NO;
|
||||||
|
@ -352,7 +352,7 @@ static NSArray *infoKeys = nil;
|
||||||
if ([newTo isKindOfClass: [NSNull class]])
|
if ([newTo isKindOfClass: [NSNull class]])
|
||||||
newTo = nil;
|
newTo = nil;
|
||||||
|
|
||||||
ASSIGN (to, newTo);
|
ASSIGN (to, [newTo uniqueObjects]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray *) to
|
- (NSArray *) to
|
||||||
|
@ -365,7 +365,7 @@ static NSArray *infoKeys = nil;
|
||||||
if ([newCc isKindOfClass: [NSNull class]])
|
if ([newCc isKindOfClass: [NSNull class]])
|
||||||
newCc = nil;
|
newCc = nil;
|
||||||
|
|
||||||
ASSIGN (cc, newCc);
|
ASSIGN (cc, [newCc uniqueObjects]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray *) cc
|
- (NSArray *) cc
|
||||||
|
@ -378,7 +378,7 @@ static NSArray *infoKeys = nil;
|
||||||
if ([newBcc isKindOfClass: [NSNull class]])
|
if ([newBcc isKindOfClass: [NSNull class]])
|
||||||
newBcc = nil;
|
newBcc = nil;
|
||||||
|
|
||||||
ASSIGN (bcc, newBcc);
|
ASSIGN (bcc, [newBcc uniqueObjects]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray *) bcc
|
- (NSArray *) bcc
|
||||||
|
|
Loading…
Reference in New Issue