parent
7043e03dd4
commit
ef80fc567f
|
@ -1,17 +1,9 @@
|
||||||
(ns status-im2.contexts.profile.create.events
|
(ns status-im2.contexts.profile.create.events
|
||||||
(:require [utils.re-frame :as rf]
|
(:require [utils.re-frame :as rf]
|
||||||
[native-module.core :as native-module]
|
[native-module.core :as native-module]
|
||||||
[status-im2.contexts.profile.config :as profile.config]
|
|
||||||
[utils.security.core :as security]
|
[utils.security.core :as security]
|
||||||
[re-frame.core :as re-frame]
|
[re-frame.core :as re-frame]
|
||||||
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
|
[status-im.transport.core :as transport]))
|
||||||
[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]))
|
|
||||||
|
|
||||||
(re-frame/reg-fx
|
(re-frame/reg-fx
|
||||||
::create-profile-and-login
|
::create-profile-and-login
|
||||||
|
@ -28,22 +20,3 @@
|
||||||
:password (native-module/sha3 (security/safe-unmask-data password))
|
:password (native-module/sha3 (security/safe-unmask-data password))
|
||||||
:imagePath (profile.config/strip-file-prefix image-path)
|
:imagePath (profile.config/strip-file-prefix image-path)
|
||||||
:customizationColor color})})
|
: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>",
|
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
|
||||||
"owner": "status-im",
|
"owner": "status-im",
|
||||||
"repo": "status-go",
|
"repo": "status-go",
|
||||||
"version": "v0.167.6",
|
"version": "feature/update-waku-nodes",
|
||||||
"commit-sha1": "e1354016a08fed9272841901578aee2c48b564e7",
|
"commit-sha1": "b8041fc80c0c91988a61d5306b0949dc16968639",
|
||||||
"src-sha256": "05mf13illjq4ykkpb7b0wa012y7bf8gs0cwh4163s8vcnmxdjj4b"
|
"src-sha256": "1b1hazknyaydngdjrmmhw2i5649n55f5jwsxg2hncqnxxcaqxfk2"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue