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])))