mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:12:38 +00:00
Activity: pending receive request row keeps stale label after editing payment request #725
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#725
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Editing a saved payment request label does not update the pending request row shown in Activity.
A receive request can be created with one label, edited to a new label, and then still appear in Activity with the old label.
Reproduction
Old Labeland enter an amount.New label.Observed behavior
The pending request row in Activity still shows
Old Label.Expected behavior
The Activity row should show the updated request label (
New label).Likely cause
ActivityListModel::updateReceiveRequest()updates the pending request row, but the Activity label path appears to overwrite that value by re-reading the wallet address-book label for the address. That means an edited payment-request label can get replaced by the older address label when Activity renders.Code references
qml/models/activitylistmodel.cppupdateReceiveRequest()updateTransactionLabel()data(..., LabelRole)Original review comment
Parent epic
Suggested fix:
The pending Activity row already gets updated through
updateReceiveRequest(), but the updated label is overwritten during Activity rendering.The main change should be to avoid reloading the wallet address-book label for pending receive-request rows.
In
qml/models/activitylistmodel.cpp:And when updating a pending request, emit the changed roles explicitly:
Why this happens now:
Old Label)getAddressLabel(address)forLabelRole, which re-applies the old address-book labelSo for pending receive requests, Activity should prefer the request label already stored on the row instead of refreshing from the wallet address book.
Working on this.