mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Allow import of accounts to manually added (not imported) instances
This commit is contained in:
@@ -68,7 +68,7 @@ struct LocationsSettingsGroupImporter {
|
||||
if let password,
|
||||
!password.isEmpty,
|
||||
let instanceID = account.instanceID,
|
||||
let instance = InstancesModel.shared.find(instanceID)
|
||||
let instance = InstancesModel.shared.find(instanceID) ?? InstancesModel.shared.findByURLString(account.urlString)
|
||||
{
|
||||
if !instance.accounts.contains(where: { instanceAccount in
|
||||
let (username, _) = instanceAccount.credentials
|
||||
|
Reference in New Issue
Block a user