fix #1499 chat: don't persist null properties
This commit is contained in:
parent
389e79d683
commit
63d9301a27
|
@ -44,7 +44,7 @@
|
||||||
(update result :markup cu/generate-hiccup)
|
(update result :markup cu/generate-hiccup)
|
||||||
result)]
|
result)]
|
||||||
(dispatch [:set-in [:message-data data-type message-id] result'])
|
(dispatch [:set-in [:message-data data-type message-id] result'])
|
||||||
(when (= :preview data-type)
|
(when (and result (= :preview data-type))
|
||||||
;; update message in realm with serialized preview
|
;; update message in realm with serialized preview
|
||||||
(messages/update {:message-id message-id
|
(messages/update {:message-id message-id
|
||||||
:preview (prn-str result)}))
|
:preview (prn-str result)}))
|
||||||
|
|
Loading…
Reference in New Issue