Skip to content

Commit dc2d5f1

Browse files
committed
fast create community to test
1 parent 105cb6a commit dc2d5f1

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

src/status_im/communities/core.cljs

+15-13
Original file line numberDiff line numberDiff line change
@@ -535,30 +535,32 @@
535535
(rf/defn create-closed-community
536536
{:events [:fast-create-community/create-closed-community]}
537537
[_]
538-
{:json-rpc/call [{:method "wakuext_createClosedCommunity"
539-
:params []
538+
{:json-rpc/call [{:method "wakuext_createClosedCommunity"
539+
:params []
540540
: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]})
544544

545545
(rf/defn create-open-community
546546
{:events [:fast-create-community/create-open-community]}
547547
[_]
548-
{:json-rpc/call [{:method "wakuext_createOpenCommunity"
549-
:params []
548+
{:json-rpc/call [{:method "wakuext_createOpenCommunity"
549+
:params []
550550
: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]})
553554

554555
(rf/defn create-token-gated-community
555556
{:events [:fast-create-community/create-token-gated-community]}
556557
[_]
557-
{:json-rpc/call [{:method "wakuext_createTokenGatedCommunity"
558-
:params []
558+
{:json-rpc/call [{:method "wakuext_createTokenGatedCommunity"
559+
:params []
559560
: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]})
562564

563565
(rf/defn open-edit-community
564566
{:events [::open-edit-community :communities/open-edit-community]}

src/status_im2/config.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
((ethereum/chain-id->chain-keyword verify-ens-chain-id) ens/ens-registries)))
7070

7171
(def fast-create-community-enabled?
72-
(enabled? (get-config :FAST_CREATE_COMMUNITY_ENABLED "1")))
72+
(enabled? (get-config :FAST_CREATE_COMMUNITY_ENABLED "0")))
7373

7474
(def default-multiaccount
7575
{:preview-privacy? blank-preview?

status-go-version.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
44
"owner": "status-im",
55
"repo": "status-go",
6-
"version": "v0.162.9",
7-
"commit-sha1": "6085a05f77354a26d879f476e67aa85cac1e1414",
8-
"src-sha256": "0lb87lnfi49fk7ijppppr79rzkg8xzpwb3xxxmmq6wca2nb1pqp5"
6+
"version": "feat/create-community-fast",
7+
"commit-sha1": "adbbb03cfecaf3474595571873b8b3c90b5a0938",
8+
"src-sha256": "0sw5wf52p6hqix6w29f8cb7bazg5s2a0hnkdaxl8w2b6p1fcwcb1"
99
}

0 commit comments

Comments
 (0)