fixed chat-id in new msg is null

Former-commit-id: cca9868af9
This commit is contained in:
michaelr 2016-04-04 19:29:54 +03:00
parent d54d6555a4
commit 4ea142dd43
1 changed files with 1 additions and 1 deletions

View File

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