fix ack messages handling

Former-commit-id: 6d333bfed7
This commit is contained in:
Roman Volosovskyi 2016-09-20 15:48:24 +03:00
parent 0a3b8e137e
commit f5854fb43c
1 changed files with 1 additions and 4 deletions

View File

@ -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])