fixed chat-id in new msg is null
This commit is contained in:
parent
5a3b923b0c
commit
cca9868af9
|
@ -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-id @chat)]
|
(let [{:keys [group-chat 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