Commit f4f72c4
committed
fix: auto-fetch profile from network when no cached data exists
When a wallet with an existing identity is imported, identity discovery
stores the identity in the local DB but the DashPay profile is not
cached. Previously, the Profile Screen would show 'No Profile Loaded'
and require the user to manually click 'Refresh' to fetch from the
network.
Now, when load_profile_from_database() finds no cached profile data,
it automatically queues a network fetch via pending_action. This runs
on the next UI frame through the existing pending_action mechanism in
render().
The auto-fetch is safe from infinite loops because trigger_load_profile()
sets profile_load_attempted = true, which prevents re-triggering in
subsequent refresh() calls.
Fixes #7591 parent dfdf7c3 commit f4f72c4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
| |||
0 commit comments