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 12, 2023
1 parent f93ed32 commit 62cb301
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,11 @@ SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
CryptoSwift: c4f2debceb38bf44c80659afe009f71e23e4a082
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
DoubleConversion: cde416483dac037923206447da6e1454df403714
FBLazyVector: d2db9d00883282819d03bbd401b2ad4360d47580
FBReactNativeSpec: 94da4d84ba3b1acf459103320882daa481a2b62d
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 3ac2326f7fee4840a3066c90eb135ecd20496ded
glog: 997518ea2aa2d8cd5df9797b641b758d52ecf2bc
HMSegmentedControl: 34c1f54d822d8308e7b24f5d901ec674dfa31352
Keycard: ac6df4d91525c3c82635ac24d4ddd9a80aca5fc8
libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef
Expand Down Expand Up @@ -763,4 +763,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: c29de3b14e3275299c51aa95520622f09d084bcb

COCOAPODS: 1.12.0
COCOAPODS: 1.12.1
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 src/status_im2/contexts/communities/discover/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
[rn/view
{:style style/featured-list-container
:on-layout #(swap! view-size
(fn []
(- (oops/oget % "nativeEvent.layout.width") 40)))}
(fn []
(- (oops/oget % "nativeEvent.layout.width") 40)))}
(when-not (= @view-size 0)
[rn/flat-list
{:key-fn :id
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 62cb301

Please sign in to comment.