Skip to content

Commit 4f1634b

Browse files
committed
review changes 2
1 parent b72e893 commit 4f1634b

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/legacy/status_im/data_store/activities.cljs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
:chatId :chat-id
6363
:contactVerificationStatus :contact-verification-status
6464
:communityId :community-id
65+
:installationId :installation-id
6566
:membershipStatus :membership-status
6667
:albumMessages :album-messages})
6768
(update :last-message #(when % (messages/<-rpc %)))

src/legacy/status_im/pairing/core.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
[{:method "wakuext_enableInstallationAndPair"
251251
:params [{:installationId (:syncing/installation-id db)}]
252252
:js-response true
253-
:on-success #(rf/dispatch [:sanitize-messages-and-process-response %])}]]]})
253+
:on-success [:sanitize-messages-and-process-response]}]]]})
254254

255255
(rf/defn pair-and-sync
256256
{:events [:pairing/pair-and-sync]}

src/status_im/contexts/shell/activity_center/notification/syncing/view.cljs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
(defn installation-created-view
2323
[{:keys [notification extra-fn]}]
24-
(let [{:keys [installationId read timestamp]} notification
24+
(let [{:keys [installation-id read timestamp]} notification
2525
customization-color (rf/sub [:profile/customization-color])
2626
theme (quo.theme/use-theme)
2727
more-details (rn/use-callback
@@ -30,8 +30,8 @@
3030
{:content
3131
(fn []
3232
[new-device-sheet/installation-request-creator-view
33-
installationId])}]))
34-
[installationId])]
33+
installation-id])}]))
34+
[installation-id])]
3535
[swipeable {:extra-fn extra-fn}
3636
[quo/activity-log
3737
{:title (i18n/label :t/sync-your-profile)

src/status_im/contexts/syncing/events.cljs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(:require
33
[clojure.string :as string]
44
[native-module.core :as native-module]
5+
[re-frame.core :as re-frame]
56
[react-native.platform :as platform]
67
[status-im.constants :as constants]
78
[status-im.contexts.profile.config :as profile.config]
@@ -50,15 +51,16 @@
5051
:syncing/key-uid key-uid
5152
:syncing/installation-id installation-id)})
5253

53-
(rf/defn clear-syncing-data
54-
{:events [:syncing/clear-syncing-data]}
54+
(defn clear-syncing-data
5555
[{:keys [db]}]
5656
{:db (dissoc
5757
db
5858
:syncing/key-uid
5959
:syncing/installation-id
6060
:syncing/pairing-process-initiated?)})
6161

62+
(re-frame/reg-event-fx :syncing/clear-syncing-data clear-syncing-data)
63+
6264
(rf/defn preflight-outbound-check-for-local-pairing
6365
{:events [:syncing/preflight-outbound-check]}
6466
[_ set-checks-passed]

0 commit comments

Comments
 (0)