From 5594fb6c600350ea776754c09e1e2142b3c100cb Mon Sep 17 00:00:00 2001 From: yenda Date: Wed, 24 Oct 2018 13:20:17 +0200 Subject: [PATCH] [fix 6508] user own picture should be unclickable in chats Signed-off-by: yenda --- .../ui/screens/desktop/main/chat/views.cljs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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 d5824b0979..00d095655e 100644 --- a/src/status_im/ui/screens/desktop/main/chat/views.cljs +++ b/src/status_im/ui/screens/desktop/main/chat/views.cljs @@ -75,25 +75,18 @@ [react/text {:style styles/author :font :medium} name]]))) (views/defview member-photo [from] - (views/letsubs [photo-path [:get-photo-path from]] + (views/letsubs [current-public-key [:get-current-public-key] + photo-path [:get-photo-path from]] [react/view {:style {:width 40 :margin-horizontal 16}} [react/view {:style {:position :absolute}} - [react/touchable-highlight {:on-press #(re-frame/dispatch [:show-profile-desktop from])} + [react/touchable-highlight {:on-press #(when-not (= current-public-key from) + (re-frame/dispatch [:show-profile-desktop from]))} [react/view {:style styles/member-photo-container} [react/image {:source {:uri (if (string/blank? photo-path) (identicon/identicon from) photo-path)} :style styles/photo-style}]]]]])) -(views/defview my-photo [from] - (views/letsubs [account [:get-current-account]] - (let [{:keys [photo-path]} account] - [react/view - [react/image {:source {:uri (if (string/blank? photo-path) - (identicon/identicon from) - photo-path)} - :style styles/photo-style}]]))) - (views/defview quoted-message [{:keys [from text]} outgoing current-public-key] (views/letsubs [username [:get-contact-name-by-identity from]] [react/view {:style styles/quoted-message-container}