Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Feb 8, 2024
1 parent 30da1e3 commit 01bdd86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/legacy/status_im/mobile_sync_settings/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.utils.mobile-sync :as utils]
[legacy.status-im.wallet.core :as wallet]
[status-im.contexts.chat.home.add-new-contact.events :as add-new-contact]
[status-im.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

(rf/defn set-new-identity-reconnected
[{:keys [db]}]
(let [input (get-in db [:contacts/new-identity :input])]
(rf/dispatch [:contacts/set-new-identity {:input input}])))

(rf/defn sheet-defaults
[{:keys [db]}]
(let [remember-choice? (get-in db [:profile/profile :remember-syncing-choice?])]
Expand All @@ -40,7 +36,7 @@
[(mailserver/process-next-messages-request)
(bottom-sheet/hide-bottom-sheet-old)
(wallet/restart-wallet-service nil)
(set-new-identity-reconnected)]
#(add-new-contact/set-new-identity-reconnected %)]

logged-in?
[(mailserver/process-next-messages-request)
Expand Down
6 changes: 6 additions & 0 deletions src/status_im/contexts/chat/home/add_new_contact/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,9 @@
{:db (dissoc db :contacts/new-identity)})

(re-frame/reg-event-fx :contacts/clear-new-identity clear-new-identity)

(defn set-new-identity-reconnected
[{:keys [db]}]
(let [input (get-in db [:contacts/new-identity :input])]
(re-frame/dispatch [:contacts/set-new-identity {:input input}])))

0 comments on commit 01bdd86

Please sign in to comment.