Protect against duplicate messages
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
33ad919508
commit
e59ffc905d
|
@ -14,7 +14,8 @@
|
||||||
::received-message
|
::received-message
|
||||||
message-model/receive-interceptors
|
message-model/receive-interceptors
|
||||||
(fn [cofx [message]]
|
(fn [cofx [message]]
|
||||||
(message-model/receive message cofx)))
|
(when (message-model/add-to-chat? cofx message)
|
||||||
|
(message-model/receive message cofx))))
|
||||||
|
|
||||||
(re-frame.core/reg-fx
|
(re-frame.core/reg-fx
|
||||||
:chat-received-message/add-fx
|
:chat-received-message/add-fx
|
||||||
|
|
Loading…
Reference in New Issue