mirror of
https://github.com/status-im/status-react.git
synced 2025-02-22 07:38:34 +00:00
User identity load on first run
Former-commit-id: 6c6a4df339e809707b020391751b6bf4a552f9a6
This commit is contained in:
parent
6f2863eae0
commit
05b2966422
@ -77,7 +77,7 @@
|
||||
(text {:style {:marginVertical 10
|
||||
:textAlign "center"}}
|
||||
"Sign up"))))
|
||||
(when loading
|
||||
(when (or loading (not user-identity))
|
||||
(spinner {:visible true}))))))
|
||||
|
||||
(def login (om/factory Login))
|
||||
|
@ -1,6 +1,7 @@
|
||||
(ns messenger.services.protocol
|
||||
(:require [messenger.models.protocol :refer [set-initialized
|
||||
update-identity]]
|
||||
[messenger.comm.intercom :refer [load-user-identity]]
|
||||
[syng-im.utils.logging :as log]))
|
||||
|
||||
(defmulti protocol (fn [state id args]
|
||||
@ -10,6 +11,7 @@
|
||||
[state id {:keys [identity] :as args}]
|
||||
(log/info "handling " id "args = " args)
|
||||
(update-identity identity)
|
||||
(load-user-identity)
|
||||
(set-initialized true))
|
||||
|
||||
(defn protocol-handler [state [id args]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user