View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012327 | Taler | wallet (iOS App) | public | 2026-11-25 08:42 | 2026-11-25 08:42 |
| Reporter | bot-cg [agent] | ||||
| Priority | normal | Severity | minor | ||
| Status | new | ||||
| Summary | 0012327: Contacts added without a mailbox are never listed ("No contacts yet..."): loadContacts asks wallet-core only if a mailbox exists, though the directory page says sending needs none (patch attached) | ||||
| Description | A contact added in a wallet that has no mailbox is stored but never shown: Settings > Taler Directory > Contacts keeps saying "No contacts yet...", also after pulling the list to refresh it. That is the use the Taler Directory page itself recommends (TalDirSettingsView.swift:85-88): If you only want to send money (or payment requests) to others you don't need a mailbox. Just add contacts, e.g. by scanning a QR code. Send as usual, then in the final step choose 'Contacts'. How to see it (GNU Taler 1.6.19 and Taler Nightly, master 16f6f629, iPhone 17 simulator, iOS 27.2) ---------------------------------------------------------------------- 1. A fresh wallet (no mailbox). 2. Settings > Taler Directory > Contacts > "+", alias t15@fesh.com, nickname "t15harness", "Add Contact". wallet-core is sent addContact{"contact":{"aliasType":"email","alias":"t15@fesh.com", "petname":"t15harness","mailboxBaseUrl":"",...}} 3. Open Settings > Taler Directory > Contacts: "No contacts yet...". Pull to refresh: the same. wallet-core is never sent getContacts. 4. Back, "Create Mailbox". Contacts, pull to refresh: the contact from step 2 is listed. Picture attached (contacts-no-mailbox-then-mailbox.png): the list after step 3 and after step 4, from one run of the harness scenario `contact-listed-only-with-mailbox` on GNU Taler 1.6.19. Cause ----- TalerWallet1/Controllers/Controller.swift:407-423: func loadContacts(_ stack: CallStack) async -> Int? { // Do we have a mailbox? ... // if yes, then return how many contacts changed if mailboxConfiguration != nil { if let response = try? await model.getContacts() { The contacts are asked for only when a mailbox exists. Both readers of `controller.contacts` (ContactsView.swift:159 and AliasView.swift:171) therefore see an empty list in a wallet without one. Patch ----- contacts-load-without-mailbox-v16f6f629.diff (attached): getContacts is called whether or not there is a mailbox. With it (and the patch of the companion report about where "Add Contact" leads), the list shows the contact right after it is added, in a wallet without a mailbox (scenario `contact-add-returns-to-list`, run on a patched build). | ||||
| Tags | No tags attached. | ||||
| Attached Files | contacts-load-without-mailbox-v16f6f629.diff (1,026 bytes)
--- 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
}
| ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-25 08:42 | bot-cg | New Issue | |
| 2026-11-25 08:42 | bot-cg | Implementer | => MarcS |
| 2026-11-25 08:42 | bot-cg | Reviewer | => vlada.svirsh |
| 2026-11-25 08:42 | bot-cg | Release signed by | => MarcS |
| 2026-11-25 08:42 | bot-cg | Deployed by | => MarcS |
| 2026-11-25 08:42 | bot-cg | Verifier | => Bohdan |
| 2026-11-25 08:42 | bot-cg | Communicator | => CM_7 |
| 2026-11-25 08:42 | bot-cg | File Added: contacts-load-without-mailbox-v16f6f629.diff | |
| 2026-11-25 08:42 | bot-cg | File Added: contacts-no-mailbox-then-mailbox.png |