Skip to content

Commit bf1a734

Browse files
authored
fix: cleanup wallet push notification subscription (#19014)
fixes #19012 ### Summary The legacy wallet code was removed here -> #18749 as part of that purge we also cleaned up re-frame subscriptions for wallet push notifications. Since the new wallet is under active development we would not need this toggle in settings just yet. This commit fixes the app crashing on settings UI. ## Platforms - Android - iOS
1 parent f8eee09 commit bf1a734

File tree

1 file changed

+2
-22
lines changed
  • src/legacy/status_im/ui/screens/notifications_settings

1 file changed

+2
-22
lines changed

Diff for: src/legacy/status_im/ui/screens/notifications_settings/views.cljs

+2-22
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,6 @@
88
[utils.i18n :as i18n]
99
[utils.re-frame :as rf]))
1010

11-
(defn local-notifications
12-
[]
13-
(let [{:keys [enabled?]} (rf/sub [:push-notifications/wallet-transactions])
14-
{:keys [notifications-enabled?]} (rf/sub [:profile/profile])]
15-
[:<>
16-
[quo/separator
17-
{:color (:ui-02 @colors/theme)
18-
:style {:margin-vertical 8}}]
19-
[quo/list-header (i18n/label :t/local-notifications)]
20-
[list.item/list-item
21-
{:size :small
22-
:title (i18n/label :t/notifications-transactions)
23-
:accessibility-label :notifications-button
24-
:active (and notifications-enabled? enabled?)
25-
:on-press #(rf/dispatch [:push-notifications.wallet/switch-transactions
26-
(not enabled?)])
27-
:accessory :switch}]]))
28-
2911
(defn notifications-settings-ios
3012
[]
3113
(let [{:keys [notifications-enabled?
@@ -63,8 +45,7 @@
6345
:on-press #(rf/dispatch
6446
[:push-notifications/switch-block-mentions
6547
(not push-notifications-block-mentions?)])
66-
:accessory :switch}]
67-
[local-notifications]]))
48+
:accessory :switch}]]))
6849

6950
(defn notifications-settings-android
7051
[]
@@ -76,8 +57,7 @@
7657
:subtitle (i18n/label :t/local-notifications-subtitle)
7758
:active notifications-enabled?
7859
:on-press #(rf/dispatch [:push-notifications/switch (not notifications-enabled?)])
79-
:accessory :switch}]
80-
[local-notifications]]))
60+
:accessory :switch}]]))
8161

8262
(defn notifications-settings
8363
[]

0 commit comments

Comments
 (0)