From b4fe910ded3f2c73224db3d1212e177fa33de0d6 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Fri, 7 Sep 2018 13:18:38 +0300 Subject: [PATCH] Fix 'Send message' handler in chat profile window --- src/status_im/ui/screens/desktop/main/chat/views.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/desktop/main/chat/views.cljs b/src/status_im/ui/screens/desktop/main/chat/views.cljs index 96912b26a1..37fa32c2ff 100644 --- a/src/status_im/ui/screens/desktop/main/chat/views.cljs +++ b/src/status_im/ui/screens/desktop/main/chat/views.cljs @@ -236,7 +236,9 @@ :accessibility-label :add-contact-link} [vector-icons/icon :icons/add {:style (styles/chat-profile-icon colors/gray)}]] [react/text {:style (styles/contact-card-text colors/gray)} (i18n/label :t/in-contacts)]]) - [react/touchable-highlight {:on-press #(re-frame/dispatch [:navigate-to-chat public-key])} + [react/touchable-highlight + {:on-press #(re-frame/dispatch + [:open-chat-with-contact {:whisper-identity whisper-identity}])} [react/view {:style styles/chat-profile-row} [react/view {:style styles/chat-profile-icon-container :accessibility-label :send-message-link}