Skip to content

Commit

Permalink
review changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Sep 6, 2024
1 parent 11639ff commit 114e4f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/legacy/status_im/data_store/activities.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
:chatId :chat-id
:contactVerificationStatus :contact-verification-status
:communityId :community-id
:installationId :installation-id
:membershipStatus :membership-status
:albumMessages :album-messages})
(update :last-message #(when % (messages/<-rpc %)))
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/status_im/pairing/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
[{:method "wakuext_enableInstallationAndPair"
:params [{:installationId (:syncing/installation-id db)}]
:js-response true
:on-success #(rf/dispatch [:sanitize-messages-and-process-response %])}]]]})
:on-success [:sanitize-messages-and-process-response]}]]]})

(rf/defn pair-and-sync
{:events [:pairing/pair-and-sync]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

(defn installation-created-view
[{:keys [notification extra-fn]}]
(let [{:keys [installationId read timestamp]} notification
(let [{:keys [installation-id read timestamp]} notification
customization-color (rf/sub [:profile/customization-color])
theme (quo.theme/use-theme)
more-details (rn/use-callback
Expand All @@ -30,8 +30,8 @@
{:content
(fn []
[new-device-sheet/installation-request-creator-view
installationId])}]))
[installationId])]
installation-id])}]))
[installation-id])]
[swipeable {:extra-fn extra-fn}
[quo/activity-log
{:title (i18n/label :t/sync-your-profile)
Expand Down
6 changes: 4 additions & 2 deletions src/status_im/contexts/syncing/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require
[clojure.string :as string]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.constants :as constants]
[status-im.contexts.profile.config :as profile.config]
Expand Down Expand Up @@ -50,15 +51,16 @@
:syncing/key-uid key-uid
:syncing/installation-id installation-id)})

(rf/defn clear-syncing-data
{:events [:syncing/clear-syncing-data]}
(defn clear-syncing-data
[{:keys [db]}]
{:db (dissoc
db
:syncing/key-uid
:syncing/installation-id
:syncing/pairing-process-initiated?)})

(re-frame/reg-event-fx :syncing/clear-syncing-data clear-syncing-data)

(rf/defn preflight-outbound-check-for-local-pairing
{:events [:syncing/preflight-outbound-check]}
[_ set-checks-passed]
Expand Down

0 comments on commit 114e4f2

Please sign in to comment.