remove outdated :initial-props
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
08b9cfcf52
commit
35671226e4
|
@ -51,7 +51,7 @@
|
|||
(defn root [_]
|
||||
(reagent/create-class
|
||||
{:component-did-mount
|
||||
(fn [this]
|
||||
(fn [_]
|
||||
(.addListener ^js react/keyboard
|
||||
(if platform/ios?
|
||||
"keyboardWillShow"
|
||||
|
@ -71,7 +71,6 @@
|
|||
(.addEventListener react-native-shake
|
||||
"ShakeEvent"
|
||||
on-shake)
|
||||
(re-frame/dispatch [:set-initial-props (reagent/props this)])
|
||||
(.hide ^js splash-screen))
|
||||
:component-will-unmount
|
||||
(fn []
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
:chat/last-outgoing-message-sent-at 0
|
||||
:chat/spam-messages-frequency 0
|
||||
:tooltips {}
|
||||
:initial-props {}
|
||||
:dimensions/window (dimensions/window)
|
||||
:registry {}
|
||||
:stickers/packs-owned #{}
|
||||
|
|
|
@ -888,11 +888,6 @@
|
|||
(fn [cofx [_ installation-id metadata]]
|
||||
(pairing/update-installation cofx installation-id metadata)))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:set-initial-props
|
||||
(fn [cofx [_ initial-props]]
|
||||
{:db (assoc (:db cofx) :initial-props initial-props)}))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:pairing.ui/enable-installation-pressed
|
||||
(fn [cofx [_ installation-id]]
|
||||
|
|
|
@ -11,11 +11,10 @@
|
|||
|
||||
(fx/defn initialize-app-db
|
||||
"Initialize db to initial state"
|
||||
[{{:keys [keycard initial-props supported-biometric-auth app-active-since]
|
||||
[{{:keys [keycard supported-biometric-auth app-active-since]
|
||||
:network/keys [type]} :db
|
||||
now :now}]
|
||||
{:db (assoc app-db
|
||||
:initial-props initial-props
|
||||
:network/type type
|
||||
:keycard (dissoc keycard :secrets)
|
||||
:supported-biometric-auth supported-biometric-auth
|
||||
|
|
|
@ -50,15 +50,11 @@
|
|||
les-topic (assoc les-topic {:Min 2, :Max 2}))))
|
||||
|
||||
(defn- get-base-node-config [config]
|
||||
(let [initial-props @(re-frame/subscribe [:initial-props])
|
||||
status-node-port (get initial-props :STATUS_NODE_PORT)]
|
||||
(cond-> (assoc config
|
||||
:Name "StatusIM")
|
||||
config/dev-build?
|
||||
(assoc :ListenAddr ":30304"
|
||||
:DataDir (str (:DataDir config) "_dev"))
|
||||
status-node-port
|
||||
(assoc :ListenAddr (str ":" status-node-port)))))
|
||||
(cond-> (assoc config
|
||||
:Name "StatusIM")
|
||||
config/dev-build?
|
||||
(assoc :ListenAddr ":30304"
|
||||
:DataDir (str (:DataDir config) "_dev"))))
|
||||
|
||||
(defn- pick-nodes
|
||||
"Picks `limit` different nodes randomly from the list of nodes
|
||||
|
|
|
@ -70,7 +70,6 @@
|
|||
(reg-root-key-sub :about-app/node-info :node-info)
|
||||
(reg-root-key-sub :peers-summary :peers-summary)
|
||||
(reg-root-key-sub :dimensions/window :dimensions/window)
|
||||
(reg-root-key-sub :initial-props :initial-props)
|
||||
(reg-root-key-sub :fleets/custom-fleets :custom-fleets)
|
||||
(reg-root-key-sub :animations :animations)
|
||||
(reg-root-key-sub :ui/search :ui/search)
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
;; TODO: Add message explaining db export
|
||||
(let [db-json (types/clj->json (select-keys db [:app-state
|
||||
:current-chat-id
|
||||
:initial-props
|
||||
:keyboard-height
|
||||
:keyboard-max-height
|
||||
:network
|
||||
|
|
Loading…
Reference in New Issue