parent
0503f5cfc9
commit
9c0ab739ea
|
@ -165,7 +165,7 @@
|
||||||
:MailserversConfig {:Enabled true}
|
:MailserversConfig {:Enabled true}
|
||||||
:EnableNTPSync true
|
:EnableNTPSync true
|
||||||
:WakuConfig
|
:WakuConfig
|
||||||
{:Enabled true
|
{:Enabled (not wakuv2-enabled)
|
||||||
:BloomFilterMode waku-bloom-filter-mode
|
:BloomFilterMode waku-bloom-filter-mode
|
||||||
:LightClient true
|
:LightClient true
|
||||||
:MinimumPoW 0.000001}
|
:MinimumPoW 0.000001}
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
[status-im.node.core :as node]
|
[status-im.node.core :as node]
|
||||||
[re-frame.core :as re-frame]
|
[re-frame.core :as re-frame]
|
||||||
[status-im.data-store.settings :as data-store.settings]
|
[status-im.data-store.settings :as data-store.settings]
|
||||||
[status-im.utils.platform :as utils.platform]))
|
[status-im.utils.platform :as utils.platform]
|
||||||
|
[status-im2.constants :as constants]))
|
||||||
|
|
||||||
(rf/defn local-pairing-completed
|
(rf/defn local-pairing-completed
|
||||||
{:events [:syncing/pairing-completed]}
|
{:events [:syncing/pairing-completed]}
|
||||||
|
@ -54,19 +55,25 @@
|
||||||
(rf/defn preparations-for-connection-string
|
(rf/defn preparations-for-connection-string
|
||||||
{:events [:syncing/get-connection-string-for-bootstrapping-another-device]}
|
{:events [:syncing/get-connection-string-for-bootstrapping-another-device]}
|
||||||
[{:keys [db]} entered-password]
|
[{:keys [db]} entered-password]
|
||||||
(let [sha3-pwd (status/sha3 (str (security/safe-unmask-data entered-password)))
|
(let [valid-password? (>= (count entered-password) constants/min-password-length)
|
||||||
key-uid (get-in db [:multiaccount :key-uid])
|
show-sheet (fn [connection-string]
|
||||||
config-map (.stringify js/JSON
|
(rf/dispatch
|
||||||
(clj->js {:senderConfig {:keyUID key-uid
|
[:bottom-sheet/show-sheet
|
||||||
:keystorePath ""
|
{:show-handle? false
|
||||||
:password sha3-pwd
|
:content (fn []
|
||||||
:deviceType utils.platform/os}
|
[sheet/qr-code-view-with-connection-string
|
||||||
:serverConfig {:timeout 0}}))]
|
connection-string])}]))]
|
||||||
(status/get-connection-string-for-bootstrapping-another-device
|
(if valid-password?
|
||||||
config-map
|
(let [sha3-pwd (status/sha3 (str (security/safe-unmask-data entered-password)))
|
||||||
(fn [connection-string]
|
key-uid (get-in db [:multiaccount :key-uid])
|
||||||
(rf/dispatch
|
config-map (.stringify js/JSON
|
||||||
[:bottom-sheet/show-sheet
|
(clj->js {:senderConfig {:keyUID key-uid
|
||||||
{:show-handle? false
|
:keystorePath ""
|
||||||
:content (fn []
|
:password sha3-pwd
|
||||||
[sheet/qr-code-view-with-connection-string connection-string])}])))))
|
:deviceType utils.platform/os}
|
||||||
|
:serverConfig {:timeout 0}}))]
|
||||||
|
(status/get-connection-string-for-bootstrapping-another-device
|
||||||
|
config-map
|
||||||
|
#(show-sheet %)))
|
||||||
|
(show-sheet ""))))
|
||||||
|
|
||||||
|
|
|
@ -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.141.2",
|
"version": "v0.142.1",
|
||||||
"commit-sha1": "91c6949cd25449d5459581a21f2c8b929290ced0",
|
"commit-sha1": "bb6139aef1718ef89861d0ed372952473178b881",
|
||||||
"src-sha256": "0d4x1y9jhdxy5jn9kqp5avx157iqz4ma7903c3ys0njmnxhmjyf8"
|
"src-sha256": "07n9gx7n8wxdxznk0g3kcy77pn14k42j1ixf18bfqgf5z40ixyna"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue