From e59ffc905d04eab94c3976da14bff73e3f77386b Mon Sep 17 00:00:00 2001 From: janherich Date: Wed, 30 May 2018 16:57:51 +0200 Subject: [PATCH] Protect against duplicate messages Signed-off-by: Igor Mandrigin --- src/status_im/chat/events/receive_message.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/chat/events/receive_message.cljs b/src/status_im/chat/events/receive_message.cljs index 908bc04b2c..0bbf517884 100644 --- a/src/status_im/chat/events/receive_message.cljs +++ b/src/status_im/chat/events/receive_message.cljs @@ -14,7 +14,8 @@ ::received-message message-model/receive-interceptors (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 :chat-received-message/add-fx