Commit 129c47d
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. The queueing is guarded with pending_action.is_none() and marks profile_load_attempted before the pending action executes so refresh() does not repeatedly enqueue the same work.
Fixes #7591 parent 7e03205 commit 129c47d
1 file changed
Lines changed: 13 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 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
323 | 335 | | |
324 | 336 | | |
325 | 337 | | |
| |||
0 commit comments