Use whole message to calculate message-id

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2018-11-29 12:39:59 +01:00
parent e3e75e0498
commit 9c67aab2c9
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 3 additions and 5 deletions

View File

@ -115,11 +115,9 @@
:dsts members
:success-event [:transport/message-sent
chat-id
(transport.utils/message-id
;; NOTE: There is no clock-value here.
;; Will we have collision?
{:from current-public-key
:chat-id chat-id})
(transport.utils/message-id (assoc (:message payload)
:chat-id chat-id
:from current-public-key))
:group-user-message]
:payload payload}}))))