parent
7043e03dd4
commit
ef80fc567f
|
@ -1,17 +1,9 @@
|
|||
(ns status-im2.contexts.profile.create.events
|
||||
(:require [utils.re-frame :as rf]
|
||||
[native-module.core :as native-module]
|
||||
[status-im2.contexts.profile.config :as profile.config]
|
||||
[utils.security.core :as security]
|
||||
[re-frame.core :as re-frame]
|
||||
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
|
||||
[status-im.transport.core :as transport]
|
||||
[status-im.communities.core :as communities]
|
||||
[status-im.data-store.chats :as data-store.chats]
|
||||
[status-im.multiaccounts.core :as multiaccounts]
|
||||
[status-im2.contexts.chat.messages.link-preview.events :as link-preview]
|
||||
[status-im2.common.log :as logging]
|
||||
[status-im2.navigation.events :as navigation]))
|
||||
[status-im.transport.core :as transport]))
|
||||
|
||||
(re-frame/reg-fx
|
||||
::create-profile-and-login
|
||||
|
@ -28,22 +20,3 @@
|
|||
:password (native-module/sha3 (security/safe-unmask-data password))
|
||||
:imagePath (profile.config/strip-file-prefix image-path)
|
||||
:customizationColor color})})
|
||||
|
||||
(rf/defn login-new-profile
|
||||
[{:keys [db] :as cofx} recovered-account?]
|
||||
(let [{:profile/keys [profile profiles-overview wallet-accounts]
|
||||
:networks/keys [current-network networks]} db
|
||||
network-id
|
||||
(str (get-in networks [current-network :config :NetworkId]))]
|
||||
(shell.utils/change-selected-stack-id :communities-stack true nil)
|
||||
(rf/merge cofx
|
||||
{:db (assoc db :chats/loading? false)
|
||||
:wallet/get-tokens [network-id wallet-accounts recovered-account?]}
|
||||
(transport/start-messenger)
|
||||
(communities/fetch)
|
||||
(data-store.chats/fetch-chats-preview
|
||||
{:on-success #(re-frame/dispatch [:chats-list/load-success %])})
|
||||
(multiaccounts/switch-preview-privacy-mode-flag)
|
||||
(link-preview/request-link-preview-whitelist)
|
||||
(logging/set-log-level (:log-level profile))
|
||||
(navigation/init-root :enable-notifications))))
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
|
||||
"owner": "status-im",
|
||||
"repo": "status-go",
|
||||
"version": "v0.167.6",
|
||||
"commit-sha1": "e1354016a08fed9272841901578aee2c48b564e7",
|
||||
"src-sha256": "05mf13illjq4ykkpb7b0wa012y7bf8gs0cwh4163s8vcnmxdjj4b"
|
||||
"version": "feature/update-waku-nodes",
|
||||
"commit-sha1": "b8041fc80c0c91988a61d5306b0949dc16968639",
|
||||
"src-sha256": "1b1hazknyaydngdjrmmhw2i5649n55f5jwsxg2hncqnxxcaqxfk2"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue