Skip to content

Commit

Permalink
Keycard did load event backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Feb 27, 2020
1 parent 9b8e6ef commit f78af59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/status_im/ui/screens/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@
(defn on-state-change [state]
(let [route-name (get-active-route-name (js->clj state))]
(tabbar/minimize-bar route-name)
;; NOTE: Both calls are for backward compatibility, should be reworked in future

;; NOTE(Ferossgp): Keycard did-load events backward compatibility
(re-frame/dispatch [:screens/on-will-focus route-name])

;; NOTE(Ferossgp): Both calls are for backward compatibility, should be reworked in future
(statusbar/set-status-bar route-name)
(re-frame/dispatch [:set :view-id route-name]))
(when debug?
Expand Down

0 comments on commit f78af59

Please sign in to comment.