Skip to content

Commit

Permalink
fix from contacts only
Browse files Browse the repository at this point in the history
  • Loading branch information
cammellos committed Jul 29, 2020
1 parent 6171542 commit aa4c7a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/status_im/notifications/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
{:events [::switch-non-contacts]}
[{:keys [db] :as cofx} enabled?]
(let [method (if enabled?
"disablePushNotificationsFromContactsOnly"
"enablePushNotificationsFromContactsOnly")]
"enablePushNotificationsFromContactsOnly"
"disablePushNotificationsFromContactsOnly")]
(fx/merge cofx
{::json-rpc/call [{:method (json-rpc/call-ext-method (waku/enabled? cofx) method)
:params []
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/notifications_settings/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
:active (and remote-push-notifications-enabled?
(not push-notifications-from-contacts-only?))
:on-press #(re-frame/dispatch
[::notifications/switch-non-contacts push-notifications-from-contacts-only?])
[::notifications/switch-non-contacts (not push-notifications-from-contacts-only?)])
:accessory :switch}]
[quo/list-item
{:size :small
Expand Down

0 comments on commit aa4c7a4

Please sign in to comment.