Compare commits
2
Commits
fix-5917
...
SOGo-5.8.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c327e744c5 | ||
|
|
ef958f6aaa |
No files matched your search
@@ -2,6 +2,17 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
### [5.8.4](https://github.com/Alinto/sogo/compare/SOGo-5.8.3...SOGo-5.8.4) (2023-06-20)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **preferences:** Fix NSException issue when SOGoCreateIdentitiesDisabled is set ([ef958f6](https://github.com/Alinto/sogo/commit/ef958f6aaaa606eaa7c06c1edd3a93667b869d3b))
|
||||
|
||||
### Enhancements
|
||||
|
||||
* **packaging:** Add RHEL9 support
|
||||
|
||||
## [5.8.3](https://github.com/Alinto/sogo/compare/SOGo-5.8.2...SOGo-5.9.0) (2023-05-30)
|
||||
|
||||
|
||||
|
||||
@@ -833,6 +833,7 @@
|
||||
{
|
||||
// This additional identity should not appear in the identity manager of the Preferences
|
||||
[identity setObject: [NSNumber numberWithBool: YES] forKey: @"isReadOnly"];
|
||||
[identity setObject: [NSNumber numberWithBool: NO] forKey: @"isDefault"];
|
||||
}
|
||||
[identities addObject: identity];
|
||||
}
|
||||
|
||||
@@ -1348,6 +1348,7 @@ static NSArray *reminderValues = nil;
|
||||
NSMutableArray *previousIdentities, *newIdentities;
|
||||
NSMutableDictionary *identity, *newIdentitiesAsDict;
|
||||
int i;
|
||||
BOOL isDefault;
|
||||
|
||||
if ([account isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
@@ -1372,9 +1373,15 @@ static NSArray *reminderValues = nil;
|
||||
// Remove existing deleted identities
|
||||
for (identity in [user allIdentities]) {
|
||||
// Identity deleted and at least one identity and not the default identity
|
||||
if ([identity objectForKey:@"isDefault"]) {
|
||||
isDefault = [[identity objectForKey:@"isDefault"] boolValue];
|
||||
} else {
|
||||
isDefault = NO;
|
||||
}
|
||||
|
||||
if (![newIdentitiesAsDict objectForKey: [identity objectForKey:@"email"]]
|
||||
&& [previousIdentities count] > 1
|
||||
&& ![identity boolForKey:@"isDefault"]) {
|
||||
&& !isDefault) {
|
||||
[previousIdentities removeObjectAtIndex: i];
|
||||
i--;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user