chat properties from subscribed atom
This commit is contained in:
parent
b7ce3df93d
commit
f34170a3c1
|
@ -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])))
|
||||||
|
|
Loading…
Reference in New Issue