Don't count OnMyMac accounts as potential duplicates.

This commit is contained in:
Maurice Parker 2020-09-26 15:11:59 -05:00
parent cc7e89215c
commit 3345c05808
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,9 @@ public final class AccountManager: UnreadCountProvider {
}
public func duplicateServiceAccount(type: AccountType, username: String?) -> Bool {
guard type != .onMyMac else {
return false
}
for account in accounts {
if account.type == type && username == account.username {
return true