From f5854fb43ca4e1964e261edffb5a734e4ef8ca64 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 20 Sep 2016 15:48:24 +0300 Subject: [PATCH] fix ack messages handling Former-commit-id: 6d333bfed771ff20f145303026d74681de6d47c1 --- src/status_im/protocol/handlers.cljs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/status_im/protocol/handlers.cljs b/src/status_im/protocol/handlers.cljs index 455f14edd1..fe00fea927 100644 --- a/src/status_im/protocol/handlers.cljs +++ b/src/status_im/protocol/handlers.cljs @@ -51,11 +51,8 @@ (case type :message (dispatch [:received-protocol-message! message]) :group-message (dispatch [:received-protocol-message! message]) - :ack (cond - (#{:message :group-message} (:type payload)) + :ack (if (#{:message :group-message} (:type payload)) (dispatch [:message-delivered message]) - - (= :contact-request (:type payload)) (dispatch [:pending-message-remove message])) :seen (dispatch [:message-seen message]) :group-invitation (dispatch [:group-chat-invite-received message])