Skip to content

Commit

Permalink
mute and unmute community and all community chats
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mut committed Jun 10, 2023
1 parent 2042045 commit 321451d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/status_im/communities/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -944,15 +944,15 @@
{:events [:community/mute-community-successful]}
[{:keys [db]} community-id muted-till]
(log/debug "muted community successfully" community-id muted-till)
(js/console.log (str "muted community successfully " muted-till))
{:db (assoc-in db [:communities community-id :muted-till] muted-till)})

(rf/defn set-community-muted
{:events [:community/set-muted]}
[{:keys [db]} community-id muted? muted-type]
(let [params [community-id muted? muted-type]]
(let [params (if muted? [community-id muted-type] [community-id])
method (if muted? "wakuext_muteCommunityChats" "wakuext_unMuteCommunityChats")]
{:db (assoc-in db [:communities community-id :muted] muted?)
:json-rpc/call [{:method "wakuext_muteCommunityChats"
:json-rpc/call [{:method method
:params params
:on-error #(rf/dispatch [:community/mute-community-failed community-id
muted? %])
Expand Down
4 changes: 2 additions & 2 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"owner": "status-im",
"repo": "status-go",
"version": "ft/mute-community",
"commit-sha1": "e6187aec6b2238a8171763dd0d2181102957d482",
"src-sha256": "1kdba9sscq3wpp4jca0h9rzxgfm9y15gdi5m4nr3jisqjv8rcg6z"
"commit-sha1": "1e97be4655bfa119e98895030a7ad9be30bc183f",
"src-sha256": "0g0mxkxq03ard31rm0dgiw304g72iz2g1pqf65acg0xkm5mdar5b"
}

0 comments on commit 321451d

Please sign in to comment.