idempotent joined chat msg

Former-commit-id: dbfbd18eaf
This commit is contained in:
michaelr 2016-04-20 13:12:12 +03:00
parent c3d45f10c7
commit ff8dc7a4f7
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@
(defn joined-chat-msg [chat-id from msg-id]
(let [contact-name (:name (contacts/contact-by-identity from))]
(save-message chat-id {:from "system"
:msg-id msg-id
:msg-id (str msg-id "_" from)
:content (str (or contact-name from) " received chat invitation")
:content-type text-content-type})))