From bfb7fa2e141f5ebf16861f4ec54782a3f24e5375 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 14 Mar 2016 13:18:24 -0400 Subject: [PATCH] (fix) don't skip last identity --- SoObjects/SOGo/SOGoUser.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SoObjects/SOGo/SOGoUser.m b/SoObjects/SOGo/SOGoUser.m index b0b8d0f7b..aa6b3c5c1 100644 --- a/SoObjects/SOGo/SOGoUser.m +++ b/SoObjects/SOGo/SOGoUser.m @@ -698,8 +698,6 @@ replyTo = [_defaults mailReplyTo]; max = [mails count]; - if (max > 1) - max--; /* custom from */ if ([[self domainDefaults] mailCustomFromEnabled]) @@ -757,7 +755,7 @@ [identities addObject: identity]; if ([[identity objectForKey: @"email"] caseInsensitiveCompare: defaultEmail] == NSOrderedSame) - default_identity = [identities count]-1; + default_identity = [identities count]-1; [identity release]; }