HomePhabricator

[Cashtab] Tx History should immediately update to include newly added contacts

Description

[Cashtab] Tx History should immediately update to include newly added contacts

Summary: Related to T2724. Changed logic in updateContactListInLocalForage to setContactList(contactListArray), leveraging Context to make the new contactList immediately available to the Tx component. Renamed updateContactListInLocalForage to updateContactList.

Test Plan:
cd web/cashtab && npm start
from TxHistory, expand a Tx from a non-contact
click the Add To Contacts button
navigate back to TxHistory
observe that 'from newContact' appears on Txs from the new contact

navigate to the configure screen
delete the new contact
navigate back to TxHistory
observe that 'from newContact' no longer appears on Txs from the (former) new contact

grep -r 'updateContactListInLocalForage' src/ should return no results.

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D12179

Details

Provenance
kieran709Authored on Oct 7 2022, 20:10
kieran709Pushed on Oct 18 2022, 14:17
Reviewer
Restricted Project
Differential Revision
D12179: [Cashtab] Tx History should immediately update to include newly added contacts
Parents
rABCe41e5e99c28f: [refactor] [addrman] Update constant comments
Branches
Unknown
Tags
Unknown