[#11880] Open user profile when tapping on user icon in 1-1 chat

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-03-17 09:11:29 +01:00
parent 46f8d9fdbf
commit 9d7dcc6ae7
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 2 additions and 1 deletions

View File

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