From e5ada29ed89f14abb63f787689d698191bdf707a Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 9 Nov 2020 10:11:23 +0100 Subject: [PATCH] [#11384] Status Updates : Open profile when tapping on username or avatar Signed-off-by: andrey --- src/status_im/ui/screens/status/views.cljs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/status_im/ui/screens/status/views.cljs b/src/status_im/ui/screens/status/views.cljs index 34388c074e..8aefcf94c4 100644 --- a/src/status_im/ui/screens/status/views.cljs +++ b/src/status_im/ui/screens/status/views.cljs @@ -71,16 +71,18 @@ :flex-direction :row :background-color (when (and timeline? outgoing) colors/blue-light) :padding-horizontal 16} - [react/view {:padding-top 2 :padding-right 8} - (if outgoing - [photos/member-identicon (multiaccounts/displayed-photo account)] - [photos/member-identicon identicon])] + [react/touchable-highlight {:on-press #(re-frame/dispatch [:chat.ui/show-profile-without-adding-contact from])} + [react/view {:padding-top 2 :padding-right 8} + (if outgoing + [photos/member-identicon (multiaccounts/displayed-photo account)] + [photos/member-identicon identicon])]] [react/view {:flex 1} [react/view {:flex-direction :row :justify-content :space-between} - (if outgoing - [message/message-my-name {:profile? true :you? false}] - [message/message-author-name from {:profile? true}]) + [react/touchable-highlight {:on-press #(re-frame/dispatch [:chat.ui/show-profile-without-adding-contact from])} + (if outgoing + [message/message-my-name {:profile? true :you? false}] + [message/message-author-name from {:profile? true}])] [react/text {:style {:font-size 10 :color colors/gray}} (datetime/time-ago (datetime/to-date timestamp))]] (if (= content-type constants/content-type-image)