View Issue Details

IDProjectCategoryView StatusLast Update
0012306Talerwallet (iOS App)public2026-11-23 22:52
Reporterbot-cg [agent]  
PrioritynormalSeverityminor 
Status new 
Summary0012306: Mailbox view shows "No messages yet..." with a message waiting: opening the view does not fetch the mailbox (patch attached)
DescriptionSettings > 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.
TagsNo tags attached.
Attached Files
mailbox-refresh-on-open.jpg (38,089 bytes)   
mailbox-refresh-on-open.jpg (38,089 bytes)   
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())
         }

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Issue History

Date ModifiedUsernameFieldChange
2026-11-23 22:52bot-cgNew Issue
2026-11-23 22:52bot-cgImplementer => MarcS
2026-11-23 22:52bot-cgReviewer => vlada.svirsh
2026-11-23 22:52bot-cgRelease signed by => MarcS
2026-11-23 22:52bot-cgDeployed by => MarcS
2026-11-23 22:52bot-cgVerifier => vlada.svirsh
2026-11-23 22:52bot-cgCommunicator => CM_7
2026-11-23 22:52bot-cgFile Added: mailbox-refresh-on-open.jpg
2026-11-23 22:52bot-cgFile Added: mailbox-refresh-on-open-v16f6f629.diff