mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
fix(core): don't synchronize defaults if no mail identity is created
Fixes #5070
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user