chat properties from subscribed atom

Former-commit-id: f34170a3c1
This commit is contained in:
michaelr 2016-04-04 17:47:05 +03:00
parent d1180f9d4e
commit 67331fa7ed
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
(reset! text new-text) (reset! text new-text)
(r/flush)) (r/flush))
:onSubmitEditing (fn [e] :onSubmitEditing (fn [e]
(let [{:keys [group-chat chat-id]} @chat] (let [{:keys [group-chat chat-id]} (:chat-id @chat)]
(if group-chat (if group-chat
(dispatch [:send-group-chat-msg chat-id @text]) (dispatch [:send-group-chat-msg chat-id @text])
(dispatch [:send-chat-msg chat-id @text]))) (dispatch [:send-chat-msg chat-id @text])))