Skip to content

Commit 0ba23b5

Browse files
committed
api: Include my offers in getoffers
1 parent c3fbc85 commit 0ba23b5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/src/main/java/bisq/core/api/CoreOffersService.java

-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ List<Offer> getOffers(String direction, String currencyCode) {
211211
var isFiat = isFiatCurrency(upperCaseCurrencyCode);
212212
if (isFiat) {
213213
return offerBookService.getOffers().stream()
214-
.filter(o -> !o.isMyOffer(keyRing))
215214
.filter(o -> offerMatchesDirectionAndCurrency(o, direction, upperCaseCurrencyCode))
216215
.sorted(priceComparator(direction, true))
217216
.collect(Collectors.toList());
@@ -222,7 +221,6 @@ List<Offer> getOffers(String direction, String currencyCode) {
222221
// then filter on the currencyCode param (the altcoin code).
223222
if (apiSupportsCryptoCurrency(upperCaseCurrencyCode))
224223
return offerBookService.getOffers().stream()
225-
.filter(o -> !o.isMyOffer(keyRing))
226224
.filter(o -> offerMatchesDirectionAndCurrency(o, direction, "BTC"))
227225
.filter(o -> o.getBaseCurrencyCode().equalsIgnoreCase(upperCaseCurrencyCode))
228226
.sorted(priceComparator(direction, false))

0 commit comments

Comments
 (0)