Enable emojis in desktop chat
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
This commit is contained in:
parent
4171bf486e
commit
861892e776
|
@ -14,6 +14,9 @@
|
||||||
(def content-type-placeholder "placeholder")
|
(def content-type-placeholder "placeholder")
|
||||||
(def content-type-emoji "emoji")
|
(def content-type-emoji "emoji")
|
||||||
|
|
||||||
|
(def desktop-content-types
|
||||||
|
#{text-content-type content-type-emoji})
|
||||||
|
|
||||||
(def command-send "send")
|
(def command-send "send")
|
||||||
(def command-request "request")
|
(def command-request "request")
|
||||||
(def command-send-status-update-interval-ms 60000)
|
(def command-send-status-update-interval-ms 60000)
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
(if (= type :datemark)
|
(if (= type :datemark)
|
||||||
^{:key (str "datemark" message-id)}
|
^{:key (str "datemark" message-id)}
|
||||||
[message.datemark/chat-datemark value]
|
[message.datemark/chat-datemark value]
|
||||||
(when (= content-type constants/text-content-type)
|
(when (contains? constants/desktop-content-types content-type)
|
||||||
(reagent.core/create-class
|
(reagent.core/create-class
|
||||||
{:component-did-mount
|
{:component-did-mount
|
||||||
#(when (and message-id
|
#(when (and message-id
|
||||||
|
|
Loading…
Reference in New Issue