From e6e994ba80ce5172f4ab5db8113ab9d403e57997 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 16 Jul 2020 13:50:07 -0400 Subject: [PATCH] fix(core): don't synchronize defaults if no mail identity is created Fixes #5070 --- SoObjects/SOGo/SOGoUserDefaults.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoUserDefaults.m b/SoObjects/SOGo/SOGoUserDefaults.m index ccd98d429..32bb88623 100644 --- a/SoObjects/SOGo/SOGoUserDefaults.m +++ b/SoObjects/SOGo/SOGoUserDefaults.m @@ -134,6 +134,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek"; email = [self stringForKey: @"SOGoMailCustomEmail"]; replyTo = [self stringForKey: @"SOGoMailReplyTo"]; signature = [self stringForKey: @"SOGoMailSignature"]; + rc = NO; if ([fullName length]) [identity setObject: fullName forKey: @"fullName"]; @@ -148,6 +149,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek"; { [identity setObject: [NSNumber numberWithBool: YES] forKey: @"isDefault"]; [self setMailIdentities: [NSArray arrayWithObject: identity]]; + rc = YES; } /** @@ -162,7 +164,6 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek"; if (signature) [self removeObjectForKey: @"SOGoMailSignature"]; */ - rc = YES; } return rc;