Emoji-only messages can be long-pressed

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Kris Calabio 2019-04-10 09:29:40 -07:00 committed by Igor Mandrigin
parent a4d8f57b09
commit a06ca37de5
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@
(re-frame/dispatch [:chat.ui/set-chat-ui-props {:messages-focused? true
:show-stickers? false}])
(react/dismiss-keyboard!))
:on-long-press #(when (= content-type constants/content-type-text)
:on-long-press #(when (or (= content-type constants/content-type-text) (= content-type constants/content-type-emoji))
(list-selection/chat-message message-id old-message-id (:text content) (i18n/label :t/message)))}
[react/view {:accessibility-label :chat-item}
(let [incoming-group (and group-chat (not outgoing))]