Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
rasom committed Jun 21, 2023
1 parent 547f749 commit aa1f107
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 6 additions & 1 deletion src/native_module/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
[taoensso.timbre :as log]
[react-native.platform :as platform]
[react-native.core :as rn]
[utils.transforms :as types]))
[utils.transforms :as types]
[clojure.string :as string]))

(defn status
[]
Expand Down Expand Up @@ -387,6 +388,10 @@
:build-id (.-buildId status)
:device-id (.-deviceId status)}))

(defn get-device-name []
(string/join "_" ((juxt :model :brand :device-id :build-id)
(get-device-model-info))))

(defn get-node-config
[callback]
(log/debug "[native-module] get-node-config")
Expand Down
10 changes: 2 additions & 8 deletions src/status_im2/contexts/syncing/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
(let [db {:networks/current-network config/default-network
:networks/networks (data-store.settings/rpc->networks config/default-networks)
:multiaccount {:installation-id installation-id
:device-name (string/join
" "
((juxt :model :device-id)
(native-module/get-device-model-info)))
:device-name (native-module/get-device-name)
:log-level config/log-level
:waku-bloom-filter-mode false
:custom-bootnodes nil
Expand Down Expand Up @@ -65,10 +62,7 @@
:nodeConfig final-node-config
:settingCurrentNetwork config/default-network
:deviceType utils.platform/os
:deviceName (string/join
" "
((juxt :model :device-id)
(native-module/get-device-model-info)))}}))]
:deviceName (native-module/get-device-name)}}))]
(rf/dispatch [:syncing/update-role constants/local-pairing-role-receiver])
(native-module/input-connection-string-for-bootstrapping
connection-string
Expand Down

0 comments on commit aa1f107

Please sign in to comment.