show offer funding address entries in receive view

This commit is contained in:
woodser 2024-02-10 06:06:58 -05:00
parent 7509a80895
commit dc015ad83d
2 changed files with 1 additions and 5 deletions

View File

@ -44,10 +44,6 @@ public final class XmrAddressEntry implements PersistablePayload {
AVAILABLE, AVAILABLE,
OFFER_FUNDING, OFFER_FUNDING,
TRADE_PAYOUT; TRADE_PAYOUT;
public boolean isReserved() {
return this == Context.OFFER_FUNDING || this == Context.TRADE_PAYOUT;
}
} }
// keyPair can be null in case the object is created from deserialization as it is transient. // keyPair can be null in case the object is created from deserialization as it is transient.

View File

@ -326,7 +326,7 @@ public class DepositView extends ActivatableView<VBox, Void> {
List<XmrAddressEntry> addressEntries = xmrWalletService.getAddressEntries(); List<XmrAddressEntry> addressEntries = xmrWalletService.getAddressEntries();
List<DepositListItem> items = new ArrayList<>(); List<DepositListItem> items = new ArrayList<>();
for (XmrAddressEntry addressEntry : addressEntries) { for (XmrAddressEntry addressEntry : addressEntries) {
if (addressEntry.getContext().isReserved()) continue; if (addressEntry.isTrade()) continue; // skip reserved for trade
items.add(new DepositListItem(addressEntry, xmrWalletService, formatter, txsWithIncomingOutputs, subaddresses)); items.add(new DepositListItem(addressEntry, xmrWalletService, formatter, txsWithIncomingOutputs, subaddresses));
} }