Skip to content

Commit

Permalink
add members to open community
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mut committed Aug 8, 2023
1 parent ff1ae2f commit 249c051
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/status_im/communities/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,6 @@
(log/error "failed to import community" %)
(re-frame/dispatch [::failed-to-import %]))}]})

(rf/defn join
{:events [:communities/join]}
[_ community-id]
{:json-rpc/call [{:method "wakuext_joinCommunity"
:params [community-id]
:js-response true
:on-success #(re-frame/dispatch [::joined %])
:on-error #(log/error "failed to join community" community-id %)}]})

(rf/defn request-to-join
{:events [:communities/request-to-join]}
[_ community-id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
:on-press (fn []
(if can-join?
(do
(rf/dispatch [:communities/join id])
(rf/dispatch [:communities/request-to-join id])
(rf/dispatch [:navigate-back]))
(do (and can-request-access?
(not pending?)
Expand Down

0 comments on commit 249c051

Please sign in to comment.