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 :dsts members
:success-event [:transport/message-sent :success-event [:transport/message-sent
chat-id chat-id
(transport.utils/message-id (transport.utils/message-id (assoc (:message payload)
;; NOTE: There is no clock-value here. :chat-id chat-id
;; Will we have collision? :from current-public-key))
{:from current-public-key
:chat-id chat-id})
:group-user-message] :group-user-message]
:payload payload}})))) :payload payload}}))))