From 9d7dcc6ae7b41dcf26b977d4115da02cbe820f6d Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 17 Mar 2021 09:11:29 +0100 Subject: [PATCH] [#11880] Open user profile when tapping on user icon in 1-1 chat Signed-off-by: andrey --- src/status_im/ui/screens/chat/toolbar_content.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/chat/toolbar_content.cljs b/src/status_im/ui/screens/chat/toolbar_content.cljs index e881d2b003..2c232f93bf 100644 --- a/src/status_im/ui/screens/chat/toolbar_content.cljs +++ b/src/status_im/ui/screens/chat/toolbar_content.cljs @@ -42,7 +42,8 @@ (when chat-id [react/view {:style st/toolbar-container} [react/view {:margin-right 10} - [chat-icon.screen/chat-icon-view-toolbar chat-id group-chat chat-name color]] + [react/touchable-highlight {:on-press #(when-not group-chat (re-frame/dispatch [:chat.ui/show-profile chat-id]))} + [chat-icon.screen/chat-icon-view-toolbar chat-id group-chat chat-name color]]] [react/view {:style st/chat-name-view} (if group-chat [react/text {:style st/chat-name-text