chat: hide emoji keyboard when tapping inside chat
This commit is contained in:
parent
11cf29ec79
commit
80f9d018f2
|
@ -390,7 +390,10 @@
|
||||||
:reagent-render
|
:reagent-render
|
||||||
(fn [{:keys [outgoing group-chat content-type content] :as message}]
|
(fn [{:keys [outgoing group-chat content-type content] :as message}]
|
||||||
[message-container 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)
|
:on-long-press #(cond (= content-type text-content-type)
|
||||||
(share content (label :t/message))
|
(share content (label :t/message))
|
||||||
(and (= content-type content-type-command) (= "location" (:content-command content)))
|
(and (= content-type content-type-command) (= "location" (:content-command content)))
|
||||||
|
|
Loading…
Reference in New Issue