From 4ea142dd43c77c8524deb195bd90e9da814ff917 Mon Sep 17 00:00:00 2001 From: michaelr Date: Mon, 4 Apr 2016 19:29:54 +0300 Subject: [PATCH] fixed chat-id in new msg is null Former-commit-id: cca9868af93daefd40a91817745a7eefc6b788cd --- src/syng_im/components/chat/plain_message_input.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syng_im/components/chat/plain_message_input.cljs b/src/syng_im/components/chat/plain_message_input.cljs index 3ad75a8802..bfe47e35a8 100644 --- a/src/syng_im/components/chat/plain_message_input.cljs +++ b/src/syng_im/components/chat/plain_message_input.cljs @@ -42,7 +42,7 @@ (reset! text new-text) (r/flush)) :onSubmitEditing (fn [e] - (let [{:keys [group-chat chat-id]} (:chat-id @chat)] + (let [{:keys [group-chat chat-id]} @chat] (if group-chat (dispatch [:send-group-chat-msg chat-id @text]) (dispatch [:send-chat-msg chat-id @text])))