[#11384] Status Updates : Open profile when tapping on username or avatar

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2020-11-09 10:11:23 +01:00
parent 35381a55c0
commit e5ada29ed8
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 9 additions and 7 deletions

View File

@ -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)