fix receiving of the first message

This commit is contained in:
Roman Volosovskyi 2016-12-30 08:39:04 +02:00
parent 323a91760f
commit 0ee9bb09ac
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@
(register-handler :received-message-when-commands-loaded
(u/side-effect!
(fn [db [_ chat-id message]]
(if true #_(commands-loaded? db chat-id)
(if (commands-loaded? db chat-id)
(dispatch [:received-message message])
(s/execute-later
#(dispatch [:received-message-when-commands-loaded chat-id message])