From 63d9301a270a3d5b07d91933fe63a0ad5b2e9a84 Mon Sep 17 00:00:00 2001 From: Herich Date: Wed, 26 Jul 2017 17:15:57 +0200 Subject: [PATCH] fix #1499 chat: don't persist null properties --- src/status_im/chat/handlers/commands.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_im/chat/handlers/commands.cljs b/src/status_im/chat/handlers/commands.cljs index f3ecf9839b..85fa29c52a 100644 --- a/src/status_im/chat/handlers/commands.cljs +++ b/src/status_im/chat/handlers/commands.cljs @@ -44,7 +44,7 @@ (update result :markup cu/generate-hiccup) 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 (messages/update {:message-id message-id :preview (prn-str result)}))