chat: hide emoji keyboard when tapping inside chat

This commit is contained in:
Alexander McCormmach 2017-11-06 18:55:05 -05:00 committed by Oskar Thorén
parent 11cf29ec79
commit 80f9d018f2
1 changed files with 4 additions and 1 deletions

View File

@ -390,7 +390,10 @@
:reagent-render
(fn [{:keys [outgoing group-chat content-type content] :as message}]
[message-container message
[touchable-highlight {:on-press #(when platform/ios? (dismiss-keyboard!))
[touchable-highlight {:on-press #(when platform/ios?
(dispatch [:set-chat-ui-props
{:show-emoji? false}])
(dismiss-keyboard!))
:on-long-press #(cond (= content-type text-content-type)
(share content (label :t/message))
(and (= content-type content-type-command) (= "location" (:content-command content)))