|
535 | 535 | (rf/defn create-closed-community
|
536 | 536 | {:events [:fast-create-community/create-closed-community]}
|
537 | 537 | [_]
|
538 |
| - {:json-rpc/call [{:method "wakuext_createClosedCommunity" |
539 |
| - :params [] |
| 538 | + {:json-rpc/call [{:method "wakuext_createClosedCommunity" |
| 539 | + :params [] |
540 | 540 | :js-response true
|
541 |
| - :on-success #(do (log/info "created closed community successfully.") |
542 |
| - (rf/dispatch [:sanitize-messages-and-process-response %])) |
543 |
| - :on-error #(log/error "failed to create closed community." {:error %})}]}) |
| 541 | + :on-success #(rf/dispatch [:sanitize-messages-and-process-response %]) |
| 542 | + :on-error #(log/error "failed to create closed community." {:error %})}] |
| 543 | + :dispatch [:hide-bottom-sheet]}) |
544 | 544 |
|
545 | 545 | (rf/defn create-open-community
|
546 | 546 | {:events [:fast-create-community/create-open-community]}
|
547 | 547 | [_]
|
548 |
| - {:json-rpc/call [{:method "wakuext_createOpenCommunity" |
549 |
| - :params [] |
| 548 | + {:json-rpc/call [{:method "wakuext_createOpenCommunity" |
| 549 | + :params [] |
550 | 550 | :js-response true
|
551 |
| - :on-success #(log/info "created open community successfully.") |
552 |
| - :on-error #(log/error "failed to create open community." {:error %})}]}) |
| 551 | + :on-success #(rf/dispatch [:sanitize-messages-and-process-response %]) |
| 552 | + :on-error #(log/error "failed to create open community." {:error %})}] |
| 553 | + :dispatch [:hide-bottom-sheet]}) |
553 | 554 |
|
554 | 555 | (rf/defn create-token-gated-community
|
555 | 556 | {:events [:fast-create-community/create-token-gated-community]}
|
556 | 557 | [_]
|
557 |
| - {:json-rpc/call [{:method "wakuext_createTokenGatedCommunity" |
558 |
| - :params [] |
| 558 | + {:json-rpc/call [{:method "wakuext_createTokenGatedCommunity" |
| 559 | + :params [] |
559 | 560 | :js-response true
|
560 |
| - :on-success #(log/info "created token gated community successfully.") |
561 |
| - :on-error #(log/error "failed to create token gated community." {:error %})}]}) |
| 561 | + :on-success #(rf/dispatch [:sanitize-messages-and-process-response %]) |
| 562 | + :on-error #(log/error "failed to create token gated community." {:error %})}] |
| 563 | + :dispatch [:hide-bottom-sheet]}) |
562 | 564 |
|
563 | 565 | (rf/defn open-edit-community
|
564 | 566 | {:events [::open-edit-community :communities/open-edit-community]}
|
|
0 commit comments