Enable emojis in desktop chat

Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
This commit is contained in:
Volodymyr Kozieiev 2018-08-23 12:13:20 +03:00
parent 4171bf486e
commit 861892e776
No known key found for this signature in database
GPG Key ID: 1F706640AAF07516
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,9 @@
(def content-type-placeholder "placeholder")
(def content-type-emoji "emoji")
(def desktop-content-types
#{text-content-type content-type-emoji})
(def command-send "send")
(def command-request "request")
(def command-send-status-update-interval-ms 60000)

View File

@ -127,7 +127,7 @@
(if (= type :datemark)
^{:key (str "datemark" message-id)}
[message.datemark/chat-datemark value]
(when (= content-type constants/text-content-type)
(when (contains? constants/desktop-content-types content-type)
(reagent.core/create-class
{:component-did-mount
#(when (and message-id