This commit is contained in:
Roman Volosovskyi 2017-01-16 14:39:46 +02:00
parent ba3034f0cc
commit a0b20e3c22
1 changed files with 2 additions and 0 deletions

View File

@ -199,6 +199,8 @@
(dispatch [::send-message! params]))) (dispatch [::send-message! params])))
(u/side-effect! (u/side-effect!
(fn [_ [_ {:keys [chat-id message]}]] (fn [_ [_ {:keys [chat-id message]}]]
(dispatch [:upsert-chat! {:chat-id chat-id
:timestamp (time/now-ms)}])
(messages/save chat-id message)))) (messages/save chat-id message))))
(register-handler :clear-response-suggestions (register-handler :clear-response-suggestions