[bisq-network/bisq] Add support to duplicate BSQ swap offers (PR #5886)

Christoph Atteneder notifications at github.com
Mon Dec 6 09:41:56 CET 2021


@ripcurlx commented on this pull request.



> @@ -228,11 +233,18 @@ private void loadView(Class<? extends View> viewClass, @Nullable Object data) {
                 selectOpenOffersView((OpenOffersView) view);
             }
         } else if (view instanceof DuplicateOfferView) {
-            if (duplicateOfferView == null && data instanceof OfferPayload) {
+            if (duplicateOfferView == null && data instanceof OfferPayloadBase) {
+                // Switch to create BSQ swap offer
+                if (data instanceof BsqSwapOfferPayload) {

I didn't want to change too much to prevent breaking the duplicate offer calls on multiple places, but yes I could move it into a util so we are not adding lots of duplications in the different caller views.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5886#discussion_r762797386
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211206/dfa63b98/attachment.htm>


More information about the bisq-github mailing list