From 2765ca3eca5040aa6fef600ac76f85c353189a76 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Fri, 20 Jan 2017 11:29:03 +0300 Subject: [PATCH] https://github.com/status-im/status-react/pull/727#issuecomment-272797705 Revert "fixed #702" This reverts commit ad255fbf8c474c0623eb0eb69ad31852b1b93f76. fixed #702 --- src/status_im/navigation/handlers.cljs | 5 ++--- src/status_im/profile/handlers.cljs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/status_im/navigation/handlers.cljs b/src/status_im/navigation/handlers.cljs index ac1486eb6e..6d8ca1fc43 100644 --- a/src/status_im/navigation/handlers.cljs +++ b/src/status_im/navigation/handlers.cljs @@ -82,9 +82,8 @@ (defn show-profile [db [_ identity]] - (-> db - (assoc :contact-identity identity) - (push-view :profile))) + (dispatch [:navigate-forget :profile]) + (assoc db :contact-identity identity)) (register-handler :show-profile show-profile) diff --git a/src/status_im/profile/handlers.cljs b/src/status_im/profile/handlers.cljs index 6618668e92..ea71c85c52 100644 --- a/src/status_im/profile/handlers.cljs +++ b/src/status_im/profile/handlers.cljs @@ -9,7 +9,7 @@ (defn message-user [identity] (when identity - (dispatch [:navigate-to :chat identity]))) + (dispatch [:navigation-replace :chat identity]))) (register-handler :open-image-picker (u/side-effect!