View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012306 | Taler | wallet (iOS App) | public | 2026-11-23 22:52 | 2026-11-23 22:52 |
| Reporter | bot-cg [agent] | ||||
| Priority | normal | Severity | minor | ||
| Status | new | ||||
| Summary | 0012306: Mailbox view shows "No messages yet..." with a message waiting: opening the view does not fetch the mailbox (patch attached) | ||||
| Description | Settings > Taler Directory > Mailbox shows "No messages yet..." although a message is waiting in the mailbox. Opening the view does not ask for the mailbox; it shows what was fetched last, which for a mailbox created in this session is nothing. The message appears only after pull-to-refresh, or after the app has been in the background for more than 30 seconds. Where the app fetches the mailbox (master 16f6f629) --------------------------------------------------- * once after launch, if a mailbox already exists (WalletMain.swift:439-440); * when it comes back from more than 30 s in the background (MainView.swift:480-482 -> hintApplicationResumed() -> :111); * on .MailboxMessageAdded (WalletMain.swift:424-425); * on pull-to-refresh in the view (MailboxView.swift:89-93). MailboxView itself has no .task / .onAppear that fetches (its .onAppear only sets the view id). Observed (iPhone 17 simulator, iOS 27.2, GNU_Taler, 2026-11-23) -------------------------------------------------------------- In one session: create the mailbox, register an alias, add it as a contact, send KUDOS 0.01 to that contact ("Send now" -- sendTalerUriMailboxMessage succeeds), then open Settings > Taler Directory > Mailbox and wait 45 s. unpatched "No messages yet..."; no refreshMailbox request in the log with the patch the message (the taler://pay-push link) is listed; 2 refreshMailbox requests One run each (plus two earlier unpatched runs of a longer scenario that ended on the same empty view, 2026-11-21 on Taler_Nightly and 2026-11-23 on GNU_Taler). See mailbox-refresh-on-open.jpg. Patch ----- mailbox-refresh-on-open-v16f6f629.diff, against master 16f6f629 (one file, +6): a `.task { await controller.refreshMailbox(stack.push()) }` on the list in MailboxView, next to the existing .refreshable. Built and run as above. The test build was the fuzzing branch plus the patches of 0012299, 0012297 and 0012153 and the 7058 title of 0011934; none of them touches MailboxView.swift, and the fuzzing branch does not differ from master in that file. Related: 0011857 (TalDir for iOS), 0011904 (push notifications -- which would make new messages announce themselves; until then the view is the only place a user looks). Not established: whether pull-to-refresh itself works -- my test harness did not manage to trigger it with a synthetic swipe, which says nothing about a finger. Estimated severity: minor. A received payment is not lost, but the one screen that is supposed to show it says there is nothing. Filed by an agent (bot-cg) on behalf of Christian Grothoff, from an automated UI exploration campaign. | ||||
| Tags | No tags attached. | ||||
| Attached Files | mailbox-refresh-on-open-v16f6f629.diff (866 bytes)
diff --git a/TalerWallet1/Views/TalDir/MailboxView.swift b/TalerWallet1/Views/TalDir/MailboxView.swift
index 6b834e69..957b9844 100644
--- a/TalerWallet1/Views/TalDir/MailboxView.swift
+++ b/TalerWallet1/Views/TalDir/MailboxView.swift
@@ -91,6 +91,12 @@ struct MailboxView: View {
symLog.log("refreshing")
await controller.refreshMailbox(stack.push())
}
+ .task {
+ // The list shows what the controller last fetched, and nothing fetched when this
+ // view opened: a message waiting on the server stayed invisible ("No messages
+ // yet...") until the user pulled to refresh or the app had been away for 30 s.
+ await controller.refreshMailbox(stack.push())
+ }
.onAppear() {
DebugViewC.shared.setViewID(VIEW_MAILBOX, stack: stack.push())
}
| ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-23 22:52 | bot-cg | New Issue | |
| 2026-11-23 22:52 | bot-cg | Implementer | => MarcS |
| 2026-11-23 22:52 | bot-cg | Reviewer | => vlada.svirsh |
| 2026-11-23 22:52 | bot-cg | Release signed by | => MarcS |
| 2026-11-23 22:52 | bot-cg | Deployed by | => MarcS |
| 2026-11-23 22:52 | bot-cg | Verifier | => vlada.svirsh |
| 2026-11-23 22:52 | bot-cg | Communicator | => CM_7 |
| 2026-11-23 22:52 | bot-cg | File Added: mailbox-refresh-on-open.jpg | |
| 2026-11-23 22:52 | bot-cg | File Added: mailbox-refresh-on-open-v16f6f629.diff |