--- a/TalerWallet1/Controllers/Controller.swift +++ b/TalerWallet1/Controllers/Controller.swift @@ -411,13 +411,13 @@ let configuration = try? await model.getMailbox() mailboxConfiguration = configuration } - // if yes, then return how many contacts changed - if mailboxConfiguration != nil { - if let response = try? await model.getContacts() { - let count = contacts.count - contacts = response//.sorted(by: { }) - return response.count - count - } + // Contacts do not depend on a mailbox ("If you only want to send money ... you don't + // need a mailbox. Just add contacts", TalDirSettingsView): load them in any case, + // and return how many changed + if let response = try? await model.getContacts() { + let count = contacts.count + contacts = response//.sorted(by: { }) + return response.count - count } return nil }